From c4022a08e5fea8712d78fe1dc9b1161c794abbb3 Mon Sep 17 00:00:00 2001 From: reuk Date: Fri, 28 Jan 2022 19:11:56 +0000 Subject: [PATCH] NODISCARD: Use more robust language standard check --- modules/juce_core/system/juce_CompilerSupport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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