Merge branch 'fix-on-macOS-10.12' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2022-01-27 17:35:20 +05:30
commit a24df07d25
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 5 deletions

View File

@ -32,11 +32,6 @@
#include <float.h> #include <float.h>
#include <string.h> #include <string.h>
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101300)
#define NSControlStateValueOn NSOnState
#define NSControlStateValueOff NSOffState
#define NSControlStateValueMixed NSMixedState
#endif
static const char* static const char*
polymorphic_string_as_utf8(id string) { polymorphic_string_as_utf8(id string) {

View File

@ -20,6 +20,11 @@
#include <crt_externs.h> #include <crt_externs.h>
#include <objc/runtime.h> #include <objc/runtime.h>
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101300)
#define NSControlStateValueOn NSOnState
#define NSControlStateValueOff NSOffState
#define NSControlStateValueMixed NSMixedState
#endif
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101200) #if (MAC_OS_X_VERSION_MAX_ALLOWED < 101200)
#define NSWindowStyleMaskResizable NSResizableWindowMask #define NSWindowStyleMaskResizable NSResizableWindowMask
#define NSEventModifierFlagOption NSAlternateKeyMask #define NSEventModifierFlagOption NSAlternateKeyMask