diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 468eb9854..94c693d6e 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -32,11 +32,6 @@ #include #include -#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101300) -#define NSControlStateValueOn NSOnState -#define NSControlStateValueOff NSOffState -#define NSControlStateValueMixed NSMixedState -#endif static const char* polymorphic_string_as_utf8(id string) { diff --git a/kitty/cocoa_window.m b/kitty/cocoa_window.m index 5a2d58527..d72147726 100644 --- a/kitty/cocoa_window.m +++ b/kitty/cocoa_window.m @@ -20,6 +20,11 @@ #include #include +#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) #define NSWindowStyleMaskResizable NSResizableWindowMask #define NSEventModifierFlagOption NSAlternateKeyMask