From 0d5d3083bd6f0f3c51b15d58a6cb525912e1b775 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Mon, 21 Jun 2021 23:37:49 +0200 Subject: Codechange: [OSX] Use more exact enum names where introduced with the 10.12 SDK. The enum values still have the exact same numerical values, but the 10.12 SDK introduced more explicit names (e.g. like NSEventTypeApplicationDefined instead of NSApplicationDefined) for several enum constants. Use them when available. --- src/os/macosx/osx_stdafx.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/os/macosx/osx_stdafx.h') diff --git a/src/os/macosx/osx_stdafx.h b/src/os/macosx/osx_stdafx.h index e147fcf74..9c4276d05 100644 --- a/src/os/macosx/osx_stdafx.h +++ b/src/os/macosx/osx_stdafx.h @@ -26,6 +26,10 @@ #define HAVE_OSX_1011_SDK #endif +#ifdef MAC_OS_X_VERSION_10_12 +#define HAVE_OSX_1012_SDK +#endif + /* It would seem that to ensure backward compatibility we have to ensure that we have defined MAC_OS_X_VERSION_10_x everywhere */ #ifndef MAC_OS_X_VERSION_10_3 #define MAC_OS_X_VERSION_10_3 1030 -- cgit v1.2.3-70-g09d2