summarylogtreecommitdiffstats
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
parent7418b8b5097f92c353812e4051bb526e2a65c244 (diff)
downloadaur-glew-libepoxy.tar.gz
Add parentheses around version macros, to prevent incorrect code expansion.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
-rw-r--r--glew.h34
3 files changed, 22 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c0fc04435f5..d3c47b5dca4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun Sep 25 06:19:06 UTC 2016
+# Sun Sep 25 06:38:15 UTC 2016
pkgbase = glew-libepoxy
pkgdesc = Dummy package providing glew using libepoxy instead
pkgver = 99
- pkgrel = 1
+ pkgrel = 2
arch = any
depends = libepoxy
provides = glew
@@ -11,7 +11,7 @@ pkgbase = glew-libepoxy
source = glew.h
source = glew.pc
source = libGLEW.so
- md5sums = 4aeb5f113ffdc41d90fdf845d0ac15e8
+ md5sums = ed1dc94f192ae75486db06e8b13ef968
md5sums = fcafee532ab772bad2e1cc2122ef20e8
md5sums = 02ad2f73b671bea81381e65f0e036b9e
diff --git a/PKGBUILD b/PKGBUILD
index 64cb92fce4a..3e3657c37b9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
pkgname=glew-libepoxy
pkgver=99
-pkgrel=1
+pkgrel=2
pkgdesc='Dummy package providing glew using libepoxy instead'
arch=('any')
depends=('libepoxy')
provides=('glew')
conflicts=('glew')
source=('glew.h' 'glew.pc' 'libGLEW.so')
-md5sums=('4aeb5f113ffdc41d90fdf845d0ac15e8'
+md5sums=('ed1dc94f192ae75486db06e8b13ef968'
'fcafee532ab772bad2e1cc2122ef20e8'
'02ad2f73b671bea81381e65f0e036b9e')
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")