From 5f39bda7ddf363ab616fa2a52d461a789702b0c7 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Tue, 21 May 2019 20:15:35 +1000 Subject: [PATCH] Extend GLEW_INCLUDE support to eglew.h and glxew.h --- auto/src/eglew_head.h | 6 +++++- auto/src/glew_head.c | 4 ++-- auto/src/glxew_head.h | 7 ++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/auto/src/eglew_head.h b/auto/src/eglew_head.h index 69bb3d9..51b1b46 100644 --- a/auto/src/eglew_head.h +++ b/auto/src/eglew_head.h @@ -27,7 +27,11 @@ #include #include -#include +#ifndef GLEW_INCLUDE +# include +#else +# include GLEW_INCLUDE +#endif #ifdef __cplusplus extern "C" { diff --git a/auto/src/glew_head.c b/auto/src/glew_head.c index d153cde..dbd18f2 100644 --- a/auto/src/glew_head.c +++ b/auto/src/glew_head.c @@ -1,7 +1,7 @@ #ifndef GLEW_INCLUDE -#include +# include #else -#include GLEW_INCLUDE +# include GLEW_INCLUDE #endif #if defined(GLEW_OSMESA) diff --git a/auto/src/glxew_head.h b/auto/src/glxew_head.h index 16fdfa4..414dc1b 100644 --- a/auto/src/glxew_head.h +++ b/auto/src/glxew_head.h @@ -19,7 +19,12 @@ #include #include #include -#include + +#ifndef GLEW_INCLUDE +# include +#else +# include GLEW_INCLUDE +#endif #ifdef __cplusplus extern "C" {