From 9f8abbd72cadc4d314dff1ea42a4b6160c3aff06 Mon Sep 17 00:00:00 2001 From: Anthony Nicholls Date: Thu, 5 Sep 2024 18:55:22 +0100 Subject: [PATCH] Core: Update compile time flags for checking C++ support --- modules/juce_core/system/juce_CompilerSupport.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/juce_core/system/juce_CompilerSupport.h b/modules/juce_core/system/juce_CompilerSupport.h index f038697101..6a8acdf0b3 100644 --- a/modules/juce_core/system/juce_CompilerSupport.h +++ b/modules/juce_core/system/juce_CompilerSupport.h @@ -52,8 +52,8 @@ #endif #endif - #define JUCE_CXX14_IS_AVAILABLE (__cplusplus >= 201402L) #define JUCE_CXX17_IS_AVAILABLE (__cplusplus >= 201703L) + #define JUCE_CXX20_IS_AVAILABLE (__cplusplus >= 202002L) #endif @@ -84,8 +84,8 @@ #error Please upgrade to Xcode 15.1 or higher #endif - #define JUCE_CXX14_IS_AVAILABLE (__cplusplus >= 201402L) #define JUCE_CXX17_IS_AVAILABLE (__cplusplus >= 201703L) + #define JUCE_CXX20_IS_AVAILABLE (__cplusplus >= 202002L) #endif @@ -103,8 +103,8 @@ #endif #endif - #define JUCE_CXX14_IS_AVAILABLE (_MSVC_LANG >= 201402L) #define JUCE_CXX17_IS_AVAILABLE (_MSVC_LANG >= 201703L) + #define JUCE_CXX20_IS_AVAILABLE (_MSVC_LANG >= 202002L) #endif //============================================================================== @@ -115,6 +115,7 @@ //============================================================================== #ifndef DOXYGEN // These are old flags that are now supported on all compatible build targets + #define JUCE_CXX14_IS_AVAILABLE 1 #define JUCE_COMPILER_SUPPORTS_OVERRIDE_AND_FINAL 1 #define JUCE_COMPILER_SUPPORTS_VARIADIC_TEMPLATES 1 #define JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS 1