aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/glad/glad.h2
-rw-r--r--examples/pugl_cxx_demo.cpp3
-rw-r--r--examples/pugl_shader_demo.c1
-rw-r--r--pugl/gl.h4
-rw-r--r--pugl/glu.h4
5 files changed, 9 insertions, 5 deletions
diff --git a/examples/glad/glad.h b/examples/glad/glad.h
index d8068c6..9efb229 100644
--- a/examples/glad/glad.h
+++ b/examples/glad/glad.h
@@ -124,8 +124,6 @@ typedef khronos_int64_t GLint64EXT;
typedef khronos_uint64_t GLuint64;
typedef khronos_uint64_t GLuint64EXT;
typedef struct __GLsync *GLsync;
-struct _cl_context;
-struct _cl_event;
typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
diff --git a/examples/pugl_cxx_demo.cpp b/examples/pugl_cxx_demo.cpp
index 439922c..214c03d 100644
--- a/examples/pugl_cxx_demo.cpp
+++ b/examples/pugl_cxx_demo.cpp
@@ -23,10 +23,9 @@
#include "demo_utils.h"
#include "test/test_utils.h"
-#include "pugl/gl.h"
#include "pugl/pugl.h"
#include "pugl/pugl.hpp"
-#include "pugl/pugl.ipp"
+#include "pugl/pugl.ipp" // IWYU pragma: keep
#include "pugl/pugl_gl.hpp"
#include <cmath>
diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c
index 70f9c41..f77d9ad 100644
--- a/examples/pugl_shader_demo.c
+++ b/examples/pugl_shader_demo.c
@@ -42,7 +42,6 @@
#include "glad/glad.h"
-#include "pugl/gl.h"
#include "pugl/pugl.h"
#include "pugl/pugl_gl.h"
diff --git a/pugl/gl.h b/pugl/gl.h
index dbb2e60..9f7a741 100644
--- a/pugl/gl.h
+++ b/pugl/gl.h
@@ -22,6 +22,8 @@
pure portable programs.
*/
+// IWYU pragma: begin_exports
+
#ifdef __APPLE__
# include "OpenGL/gl.h"
#else
@@ -30,3 +32,5 @@
# endif
# include "GL/gl.h"
#endif
+
+// IWYU pragma: end_exports
diff --git a/pugl/glu.h b/pugl/glu.h
index 94da8fc..423a917 100644
--- a/pugl/glu.h
+++ b/pugl/glu.h
@@ -22,6 +22,8 @@
pure portable programs.
*/
+// IWYU pragma: begin_exports
+
#ifdef __APPLE__
# include "OpenGL/glu.h"
#else
@@ -30,3 +32,5 @@
# endif
# include "GL/glu.h"
#endif
+
+// IWYU pragma: end_exports