summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBryan Kadzban <github@kadzban.net>2016-09-06 22:28:39 -0700
committerEmmanuele Bassi <ebassi@gnome.org>2016-12-07 14:59:53 +0000
commitf887dcf79b35c47b1c70eb773f6ad9b6a5f81466 (patch)
treedfc5822f6449ebaf4f77894d4d4daa3a72bf26c1 /include
parent407f579f2d9a915a282becba80c6aa081a524b93 (diff)
downloadlibepoxy-f887dcf79b35c47b1c70eb773f6ad9b6a5f81466.tar.gz
nVidia glx.h uses __glx_h__; define that too.
The code used to check this symbol, but commit 689abf4 replaced it with GLX_H, presumably to work better with either Mesa or Khronos headers. But nVidia's header use the older include guard. Add it as another option. Should fix the headerguards.c compile test when the system glx.h is from nVidia's binary drivers. Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
Diffstat (limited to 'include')
-rw-r--r--include/epoxy/glx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/epoxy/glx.h b/include/epoxy/glx.h
index 36fc617..8df33b8 100644
--- a/include/epoxy/glx.h
+++ b/include/epoxy/glx.h
@@ -43,6 +43,7 @@ extern "C" {
#error epoxy/glx.h must be included before (or in place of) GL/glx.h
#else
#define GLX_H
+#define __glx_h__
#define __glxext_h_
#endif