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