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 <EGL/eglplatform.h>
#ifndef GLEW_INCLUDE
# include <GL/glew.h>
#else
# include GLEW_INCLUDE
#endif
#ifdef __cplusplus
extern "C" {

View File

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