Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 75410356b0b54ea14bc6ab36a6ebe965 > files > 4

glew-2.2.0-5.mga9.src.rpm

diff -up glew-2.2.0/include/GL/glew.h~ glew-2.2.0/include/GL/glew.h
--- glew-2.2.0/include/GL/glew.h~	2020-03-15 12:53:59.000000000 +0100
+++ glew-2.2.0/include/GL/glew.h	2022-02-22 23:17:58.889834158 +0100
@@ -220,7 +220,8 @@ typedef _W64 int ptrdiff_t;
  */
 
 #if defined(__APPLE__) || defined(__linux__)
-#  if defined(__cplusplus)
+/* GCC12 errors out when including <cstdint> with __cplusplus < 201103L */
+#  if defined(__cplusplus) && __cplusplus >= 201103L
 #    include <cstddef>
 #    include <cstdint>
 #  else