Merge branch 'fix-on-macOS-10.12' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
a24df07d25
@ -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) {
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user