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>
macos/v1.5.9
Bryan Kadzban 8 years ago committed by Emmanuele Bassi
parent 407f579f2d
commit f887dcf79b
  1. 1
      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 #error epoxy/glx.h must be included before (or in place of) GL/glx.h
#else #else
#define GLX_H #define GLX_H
#define __glx_h__
#define __glxext_h_ #define __glxext_h_
#endif #endif

Loading…
Cancel
Save