From f27a1ae9a837a9375319d3705fd615556be59d66 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Tue, 29 Nov 2016 12:20:47 +0100 Subject: doc: Always declare GL types for clangqdoc GLint, GLuint, GLfloat, and GLenum must be declared for clangqdoc because it must generate the documentation for opengl support whether or not opengl support is provided. Change-Id: I1dccac86fe72a30509bc563dda0b60bcb156bc0b Reviewed-by: Martin Smith --- src/opengl/qgl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/opengl') diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h index a97ddb2b27..ab418c191a 100644 --- a/src/opengl/qgl.h +++ b/src/opengl/qgl.h @@ -51,6 +51,15 @@ #include +#if defined(Q_CLANG_QDOC) +#undef GLint +typedef int GLint; +#undef GLuint +typedef unsigned int GLuint; +#undef GLenum +typedef unsigned int GLenum; +#endif + QT_BEGIN_NAMESPACE -- cgit v1.2.3