summarylogtreecommitdiffstats
path: root/glew.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2016-09-25 08:39:15 +0200
committerEmmanuel Gil Peyrot2016-09-25 08:39:15 +0200
commit9394fe4f393afa6ad64148bbb0f297c552ba0af7 (patch)
tree9af0318925f6b5e7974e077a69932a78ab4560a7 /glew.h
parent7418b8b5097f92c353812e4051bb526e2a65c244 (diff)
downloadaur-glew-libepoxy.tar.gz
Add parentheses around version macros, to prevent incorrect code expansion.
Diffstat (limited to 'glew.h')
-rw-r--r--glew.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/glew.h b/glew.h
index ec8d9d984a1..8a85c9f4553 100644
--- a/glew.h
+++ b/glew.h
@@ -34,23 +34,23 @@ extern "C" {
/* ----------------------------- GL_VERSION_1_2 ---------------------------- */
-#define GLEW_VERSION_1_2 epoxy_gl_version() >= 12
-#define GLEW_VERSION_1_2_1 epoxy_gl_version() >= 12
-#define GLEW_VERSION_1_3 epoxy_gl_version() >= 13
-#define GLEW_VERSION_1_4 epoxy_gl_version() >= 14
-#define GLEW_VERSION_1_5 epoxy_gl_version() >= 15
-#define GLEW_VERSION_2_0 epoxy_gl_version() >= 20
-#define GLEW_VERSION_2_1 epoxy_gl_version() >= 21
-#define GLEW_VERSION_3_0 epoxy_gl_version() >= 30
-#define GLEW_VERSION_3_1 epoxy_gl_version() >= 31
-#define GLEW_VERSION_3_2 epoxy_gl_version() >= 32
-#define GLEW_VERSION_3_3 epoxy_gl_version() >= 33
-#define GLEW_VERSION_4_0 epoxy_gl_version() >= 40
-#define GLEW_VERSION_4_1 epoxy_gl_version() >= 41
-#define GLEW_VERSION_4_2 epoxy_gl_version() >= 42
-#define GLEW_VERSION_4_3 epoxy_gl_version() >= 43
-#define GLEW_VERSION_4_4 epoxy_gl_version() >= 44
-#define GLEW_VERSION_4_5 epoxy_gl_version() >= 45
+#define GLEW_VERSION_1_2 (epoxy_gl_version() >= 12)
+#define GLEW_VERSION_1_2_1 (epoxy_gl_version() >= 12)
+#define GLEW_VERSION_1_3 (epoxy_gl_version() >= 13)
+#define GLEW_VERSION_1_4 (epoxy_gl_version() >= 14)
+#define GLEW_VERSION_1_5 (epoxy_gl_version() >= 15)
+#define GLEW_VERSION_2_0 (epoxy_gl_version() >= 20)
+#define GLEW_VERSION_2_1 (epoxy_gl_version() >= 21)
+#define GLEW_VERSION_3_0 (epoxy_gl_version() >= 30)
+#define GLEW_VERSION_3_1 (epoxy_gl_version() >= 31)
+#define GLEW_VERSION_3_2 (epoxy_gl_version() >= 32)
+#define GLEW_VERSION_3_3 (epoxy_gl_version() >= 33)
+#define GLEW_VERSION_4_0 (epoxy_gl_version() >= 40)
+#define GLEW_VERSION_4_1 (epoxy_gl_version() >= 41)
+#define GLEW_VERSION_4_2 (epoxy_gl_version() >= 42)
+#define GLEW_VERSION_4_3 (epoxy_gl_version() >= 43)
+#define GLEW_VERSION_4_4 (epoxy_gl_version() >= 44)
+#define GLEW_VERSION_4_5 (epoxy_gl_version() >= 45)
#define GLEW_3DFX_multisample epoxy_has_gl_extension("GL_3DFX_multisample")
#define GLEW_3DFX_tbuffer epoxy_has_gl_extension("GL_3DFX_tbuffer")