aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-10-17 09:54:44 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2022-10-17 14:16:52 +0000
commitcddf846280f566fe6cb9d51b99aa6d6be5e676f9 (patch)
tree558704a9b50854d1ac3f62986ce651543ea73a56
parent514373ebfe8635982746b846635598000685c3cb (diff)
Fix build with OpenGLES
Add the GLES headers to the system headers so that the integer typedefs are seen, which is required after f92cd6b5ac0dc3f97d9693443e6ac5cf966b87ec, 50d0c3c94ff66c104de269f09c08109eb9d0eb3a. Fixes: PYSIDE-2084 Change-Id: I6036d042765b959e0f8d7258d5d5ba322351f8ec Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit efd7f86bc13bac6de6fe0c2627a271f3ee6d480a)
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
index 1973d3d38..532e6ff66 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
@@ -807,6 +807,10 @@ bool BuilderPrivate::visitHeader(const QString &fileName) const
// Resolve OpenGL typedefs although the header is considered a system header.
const QString baseName = clang::baseName(fileName);
if (baseName == u"gl.h"
+ || baseName == u"gl2.h"
+ || baseName == u"gl3.h"
+ || baseName == u"gl31.h"
+ || baseName == u"gl32.h"
|| baseName == u"stdint.h" // Windows: int32_t, uint32_t
|| baseName == u"stddef.h") { // size_t
return true;