From 6cb4c0f6914cae0fc4442dbb64abe068ee3b4cf0 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Fri, 11 May 2012 19:32:21 +0300 Subject: [PATCH] make GLES/glext.hpp guard macro name unique MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We want to include both GL/glext.hpp and GLES/glext.hpp but they are guarded using the same macro name. Make them unique. Signed-off-by: Imre Deak Signed-off-by: José Fonseca --- thirdparty/khronos/GLES/glext.h | 6 +++--- thirdparty/khronos/GLES/glext.patch | 19 +++++++++++++++++++ thirdparty/khronos/Makefile | 6 +++++- 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 thirdparty/khronos/GLES/glext.patch diff --git a/thirdparty/khronos/GLES/glext.h b/thirdparty/khronos/GLES/glext.h index d591832..90fd2c3 100644 --- a/thirdparty/khronos/GLES/glext.h +++ b/thirdparty/khronos/GLES/glext.h @@ -1,5 +1,5 @@ -#ifndef __glext_h_ -#define __glext_h_ +#ifndef __gles_glext_h_ +#define __gles_glext_h_ /* $Revision: 16481 $ on $Date:: 2012-01-04 10:43:56 -0800 #$ */ @@ -1179,5 +1179,5 @@ typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask); } #endif -#endif /* __glext_h_ */ +#endif /* __gles_glext_h_ */ diff --git a/thirdparty/khronos/GLES/glext.patch b/thirdparty/khronos/GLES/glext.patch new file mode 100644 index 0000000..64ab153 --- /dev/null +++ b/thirdparty/khronos/GLES/glext.patch @@ -0,0 +1,19 @@ +diff --git a/thirdparty/khronos/GLES/glext.h b/thirdparty/khronos/GLES/glext.h +index d591832..90fd2c3 100644 +--- a/thirdparty/khronos/GLES/glext.h ++++ b/thirdparty/khronos/GLES/glext.h +@@ -1,5 +1,5 @@ +-#ifndef __glext_h_ +-#define __glext_h_ ++#ifndef __gles_glext_h_ ++#define __gles_glext_h_ + + /* $Revision: 16481 $ on $Date:: 2012-01-04 10:43:56 -0800 #$ */ + +@@ -1179,5 +1179,5 @@ typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask); + } + #endif + +-#endif /* __glext_h_ */ ++#endif /* __gles_glext_h_ */ + diff --git a/thirdparty/khronos/Makefile b/thirdparty/khronos/Makefile index b53d5f5..9240ca8 100644 --- a/thirdparty/khronos/Makefile +++ b/thirdparty/khronos/Makefile @@ -27,9 +27,13 @@ EGL/eglplatform.h: EGL/eglplatform.patch FORCE wget -O $@ "http://www.khronos.org/registry/egl/api/$@" patch $@ $< -GLES/gl.h GLES/glext.h GLES/glplatform.h: FORCE +GLES/gl.h GLES/glplatform.h: FORCE wget -O $@ "http://www.khronos.org/registry/gles/api/1.1/$(@F)" +GLES/glext.h: GLES/glext.patch FORCE + wget -O $@ "http://www.khronos.org/registry/gles/api/1.1/$(@F)" + patch $@ $< + GLES2/gl2.h GLES2/gl2ext.h GLES2/gl2platform.h: FORCE wget -O $@ "http://www.khronos.org/registry/gles/api/2.0/$(@F)" -- 2.43.0