Cocoa: Add comments for Cocoa symbol macros

From upstream: 94cb0347ab.
This commit is contained in:
Luflosi 2019-11-21 14:16:01 +01:00
parent c510584afd
commit fae51d4e00
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -36,6 +36,9 @@ typedef void* id;
typedef void* CVDisplayLinkRef;
#endif
// NOTE: Many Cocoa enum values have been renamed and we need to build across
// SDK versions where one is unavailable or the other deprecated
// We use the newer names in code and these macros to handle compatibility
#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
#define NSBitmapFormatAlphaNonpremultiplied NSAlphaNonpremultipliedBitmapFormat
#define NSEventMaskAny NSAnyEventMask