From 2a802688b702d6797ad5a2b62baeb129008bc8a9 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Sat, 3 Jan 2026 10:52:38 +1000 Subject: [PATCH] Better pre-C++11 compatibility, via Fedora --- auto/src/glew_head.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto/src/glew_head.h b/auto/src/glew_head.h index 9277d2a..3e2757e 100644 --- a/auto/src/glew_head.h +++ b/auto/src/glew_head.h @@ -137,7 +137,8 @@ typedef _W64 int ptrdiff_t; */ #if defined(__APPLE__) || defined(__linux__) -# if defined(__cplusplus) +/* GCC12 errors out when including with __cplusplus < 201103L */ +# if defined(__cplusplus) && __cplusplus >= 201103L # include # include # else