Compile errors in due to commit

This commit:

Fails to compile on Xcode 9.4.1 with a base SDK of 10.12:

NSEventTypeSmartMagnify is a duplicate case value (NSEventTypeMagnify)
NSEventTypePressure is a duplicate case value (NSEventTypeGesture)
NSEventTypeDirectTouch is a duplicate case value (NSEventTypeGesture)


I can’t install Xcode 9 to test as it won’t run on Catalina, but I’m building against the 10.12 SDK and don’t see these errors. Does this happen with a fresh JUCE project with no modifications other than setting the base SDK to 10.12?

I’m seeing this with the 10.13 SDK but I think it’s only when building 32-bit plugins.
The following (just a quick hack) seems to fix it:

           #if __LP64__
            case NSEventTypeSmartMagnify:
            case NSEventTypeQuickLook:
           #if __LP64__
            case NSEventTypePressure:
          #if defined (MAC_OS_X_VERSION_10_12) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
           #if __LP64__
            case NSEventTypeDirectTouch:
           #if defined (MAC_OS_X_VERSION_10_15) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_15
            case NSEventTypeChangeMode:
1 Like