Merge branch 'fix-compilation-on-old-macos' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2021-04-22 14:30:38 +05:30
commit 572d576d5b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -32,6 +32,12 @@
#include <float.h>
#include <string.h>
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101300)
#define NSControlStateValueOn NSOnState
#define NSControlStateValueOff NSOffState
#define NSControlStateValueMixed NSMixedState
#endif
static uint32_t
vk_code_to_functional_key_code(uint8_t key_code) { // {{{