aboutsummaryrefslogtreecommitdiffstats
path: root/make/stub_includes/opengl/GL
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-06 09:42:13 +0100
committerSven Gothel <[email protected]>2015-03-06 09:42:13 +0100
commit0674a3678d747335ad36f0f57e3bdc9c168f0dcf (patch)
treea6841c14fc41ca14586f684136fe792362094195 /make/stub_includes/opengl/GL
parenta554616fae30facd7574679b5c8b244757b7ccd9 (diff)
Bug 1135 - Fix other GL header and windows-system header
- GL/gl.h: remove added gl-types.h include, which causes 'redefined' warnings or errors. - GLES/glext.h: Use vanilla 'typedef void* GLeglImageOES' - opengl/gl-types.h: Complete all GL types - Fix windows.h and all its related header
Diffstat (limited to 'make/stub_includes/opengl/GL')
-rw-r--r--make/stub_includes/opengl/GL/gl-platform.h1
-rw-r--r--make/stub_includes/opengl/GL/gl.h1
-rw-r--r--make/stub_includes/opengl/GL/glcorearbext.h10
3 files changed, 10 insertions, 2 deletions
diff --git a/make/stub_includes/opengl/GL/gl-platform.h b/make/stub_includes/opengl/GL/gl-platform.h
index d07fd92ce..d55410b0a 100644
--- a/make/stub_includes/opengl/GL/gl-platform.h
+++ b/make/stub_includes/opengl/GL/gl-platform.h
@@ -49,6 +49,7 @@
#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
+#undef WIN32_LEAN_AND_MEAN
#endif
/**
diff --git a/make/stub_includes/opengl/GL/gl.h b/make/stub_includes/opengl/GL/gl.h
index f6cfc7920..56812a531 100644
--- a/make/stub_includes/opengl/GL/gl.h
+++ b/make/stub_includes/opengl/GL/gl.h
@@ -35,7 +35,6 @@
/* Function declaration macros - to move into gl-platform.h */
#include "gl-platform.h"
-#include "gl-types.h"
#ifdef __cplusplus
extern "C" {
diff --git a/make/stub_includes/opengl/GL/glcorearbext.h b/make/stub_includes/opengl/GL/glcorearbext.h
index 8fab1ddee..31df636ad 100644
--- a/make/stub_includes/opengl/GL/glcorearbext.h
+++ b/make/stub_includes/opengl/GL/glcorearbext.h
@@ -1,6 +1,10 @@
#ifndef __glcorearbext_h_
#define __glcorearbext_h_ 1
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
** Copyright (c) 2010 JogAmp Developer Team
**
@@ -26,7 +30,7 @@
/**
* This header files contains additional extensions not covered by the
- * 'official' khronos glcorearbext.h
+ * 'official' khronos glcorearb.h
*/
/*
@@ -347,5 +351,9 @@ GLAPI void APIENTRY glStencilOpValueAMD (GLenum face, GLuint value);
/* No need for explicit function pointer: we force generation of ProcAddress .. */
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __glcorearbext_h_ */