Browse Source

Avoided enabling lambdas on builds for older versions of iOS.

tags/2021-05-28
jules 11 years ago
parent
commit
b9dc8f8ea9
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_core/system/juce_PlatformDefs.h

+ 4
- 1
modules/juce_core/system/juce_PlatformDefs.h View File

@@ -360,7 +360,10 @@ namespace juce
#define JUCE_DELETED_FUNCTION = delete
#endif
#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))
#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) \
|| (JUCE_IOS && defined (__IPHONE_7_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_7_0) \
|| ! (JUCE_MAC || JUCE_IOS))
#define JUCE_COMPILER_SUPPORTS_LAMBDAS 1
#endif


Loading…
Cancel
Save