Browse Source

Fix for targeting older versions of OSX that don't support initializer_list

tags/2021-05-28
jules 10 years ago
parent
commit
aa1cbafd10
1 changed files with 11 additions and 8 deletions
  1. +11
    -8
      modules/juce_core/system/juce_CompilerSupport.h

+ 11
- 8
modules/juce_core/system/juce_CompilerSupport.h View File

@@ -74,13 +74,20 @@
#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) \
|| (JUCE_IOS && defined (__IPHONE_7_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_7_0) \
|| ! (JUCE_MAC || JUCE_IOS))
#if (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_NOT_OSX10_8_OR_EARLIER 1
#endif
#if __has_feature (cxx_lambdas) && JUCE_NOT_OSX10_8_OR_EARLIER
#define JUCE_COMPILER_SUPPORTS_LAMBDAS 1
#endif
#if __has_feature (cxx_generalized_initializers) && JUCE_NOT_OSX10_8_OR_EARLIER
#define JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS 1
#endif
#ifndef JUCE_COMPILER_SUPPORTS_OVERRIDE_AND_FINAL
#define JUCE_COMPILER_SUPPORTS_OVERRIDE_AND_FINAL 1
#endif
@@ -89,10 +96,6 @@
#define JUCE_COMPILER_SUPPORTS_ARC 1
#endif
#if __has_feature (cxx_generalized_initializers)
#define JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS 1
#endif
#endif
//==============================================================================


Loading…
Cancel
Save