From 497f41bdc4c66a6a281b98215210f872baaa9377 Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Thu, 14 Sep 2023 22:11:30 +0100 Subject: [PATCH] C++11 is only needed for the color constants Allow compiling with C++98, so long as they aren't included --- src/raylib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raylib.h b/src/raylib.h index f8a182948..561845abf 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -143,7 +143,7 @@ // Some compilers (mostly macos clang) default to C++98, // where aggregate initialization can't be used // So, give a more clear error stating how to fix this -#if !defined(_MSC_VER) && (defined(__cplusplus) && __cplusplus < 201103L) +#if !defined(_MSC_VER) && (defined(__cplusplus) && __cplusplus < 201103L) && !defined(RL_NO_COLOR_CONSTANTS) #error "C++11 or later is required. Add -std=c++11" #endif