mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-24 06:45:07 +00:00
Extend GLEW_INCLUDE support to eglew.h and glxew.h
This commit is contained in:
parent
154f83e024
commit
5f39bda7dd
@ -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" {
|
||||||
|
@ -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)
|
||||||
|
@ -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" {
|
||||||
|
Loading…
Reference in New Issue
Block a user