diff --git a/modules/juce_core/system/juce_PlatformDefs.h b/modules/juce_core/system/juce_PlatformDefs.h index a73305232e..aadf388b1d 100644 --- a/modules/juce_core/system/juce_PlatformDefs.h +++ b/modules/juce_core/system/juce_PlatformDefs.h @@ -360,7 +360,7 @@ namespace juce #define JUCE_DELETED_FUNCTION = delete #endif - #if __has_feature (cxx_lambdas) && ((! JUCE_MAC) || MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5) + #if __has_feature (cxx_lambdas) && ((! JUCE_MAC) || (defined (MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_8)) #define JUCE_COMPILER_SUPPORTS_LAMBDAS 1 #endif