diff --git a/modules/juce_core/system/juce_CompilerSupport.h b/modules/juce_core/system/juce_CompilerSupport.h index 5fa4159be9..7fd571e457 100644 --- a/modules/juce_core/system/juce_CompilerSupport.h +++ b/modules/juce_core/system/juce_CompilerSupport.h @@ -102,7 +102,7 @@ #define JUCE_CONSTEXPR constexpr #endif -#if __cplusplus >= 201703L +#if JUCE_CXX17_IS_AVAILABLE #define JUCE_NODISCARD [[nodiscard]] #else #define JUCE_NODISCARD