Extend GLEW_INCLUDE support to eglew.h and glxew.h

This commit is contained in:
Nigel Stewart 2019-05-21 20:15:35 +10:00
parent 154f83e024
commit 5f39bda7dd
3 changed files with 13 additions and 4 deletions

View File

@ -27,7 +27,11 @@
#include <KHR/khrplatform.h> #include <KHR/khrplatform.h>
#include <EGL/eglplatform.h> #include <EGL/eglplatform.h>
#include <GL/glew.h> #ifndef GLEW_INCLUDE
# include <GL/glew.h>
#else
# include GLEW_INCLUDE
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1,7 +1,7 @@
#ifndef GLEW_INCLUDE #ifndef GLEW_INCLUDE
#include <GL/glew.h> # include <GL/glew.h>
#else #else
#include GLEW_INCLUDE # include GLEW_INCLUDE
#endif #endif
#if defined(GLEW_OSMESA) #if defined(GLEW_OSMESA)

View File

@ -19,7 +19,12 @@
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include <GL/glew.h>
#ifndef GLEW_INCLUDE
# include <GL/glew.h>
#else
# include GLEW_INCLUDE
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {