From 99d37df6cf410117cb8d49774ef7550bcf847c7b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 9 Mar 2015 08:57:24 +0100 Subject: Bug 1135 - (Re-)Include GL header for in generated native code, allowing 'ProcAddrTypedef' validation Include GL header for in generated native code, since we need the public 'ProcAddrTypedef' to be validated against the GlueGen generated variant by the c-compiler. The 'ProcAddrTypedef' validation semantic has been introduced in GlueGen w/ commit 10060b091b76bee35246c5165d49ab546ebc4e37. Originally the GL header were always included, however, JOGL commit 0d59bd4c655ef9a27f127000848aae7f07f240ae removed the inclusion to simplify handling GL extension collisions mitigated via gl*-supplement.h. The latter produces 'redefine' errors via c-compiler. The 'redefine' issue above is resolved by conditional code (#ifdef __GLUEGEN__ ..) in glext-supplement.h. --- make/config/jogl/gl-headers.cfg | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'make/config/jogl/gl-headers.cfg') diff --git a/make/config/jogl/gl-headers.cfg b/make/config/jogl/gl-headers.cfg index 3692cd804..7a5315ebb 100644 --- a/make/config/jogl/gl-headers.cfg +++ b/make/config/jogl/gl-headers.cfg @@ -1,13 +1,23 @@ CustomCCode #include /* android */ CustomCCode #include -CustomCCode #include +CustomCCode // Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in +CustomCCode // "glext.h" are parsed. +CustomCCode #define GL_GLEXT_PROTOTYPES CustomCCode #if defined(_WIN32) CustomCCode #include CustomCCode #include CustomCCode #include +CustomCCode /* Include the OpenGL headers */ +CustomCCode #include +CustomCCode #include +CustomCCode #include CustomCCode #elif defined(__APPLE__) CustomCCode #include CustomCCode #include +CustomCCode /* Include the OpenGL headers */ +CustomCCode #include +CustomCCode #include +CustomCCode #include CustomCCode #include CustomCCode /* Provide Windows typedefs */ CustomCCode typedef void* LPVOID; @@ -16,6 +26,10 @@ CustomCCode #elif defined(__unix__) CustomCCode #include CustomCCode #include CustomCCode #include +CustomCCode /* Include the OpenGL headers */ +CustomCCode #include +CustomCCode #include +CustomCCode #include CustomCCode /* Provide Windows typedefs */ CustomCCode typedef void* LPVOID; CustomCCode typedef unsigned int* PUINT; -- cgit v1.2.3