aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/cube_view.h3
-rw-r--r--examples/demo_utils.h2
-rw-r--r--examples/pugl_vulkan_cxx_demo.cpp1
-rw-r--r--include/pugl/gl.h8
-rw-r--r--include/pugl/vulkan.h4
-rw-r--r--src/stub.h2
-rw-r--r--src/x11_gl.c1
-rw-r--r--test/test_clipboard.c1
8 files changed, 13 insertions, 9 deletions
diff --git a/examples/cube_view.h b/examples/cube_view.h
index e0c86eb..71ae88d 100644
--- a/examples/cube_view.h
+++ b/examples/cube_view.h
@@ -22,6 +22,9 @@
#include "demo_utils.h"
#include "pugl/gl.h"
+#include "pugl/pugl.h"
+
+#include <stdbool.h>
// clang-format off
diff --git a/examples/demo_utils.h b/examples/demo_utils.h
index e76d304..2dda756 100644
--- a/examples/demo_utils.h
+++ b/examples/demo_utils.h
@@ -20,9 +20,7 @@
#include "pugl/pugl.h"
#include <math.h>
-#include <stdint.h>
#include <stdio.h>
-#include <string.h>
typedef struct {
double lastReportTime;
diff --git a/examples/pugl_vulkan_cxx_demo.cpp b/examples/pugl_vulkan_cxx_demo.cpp
index 3dab5ce..9fbf7af 100644
--- a/examples/pugl_vulkan_cxx_demo.cpp
+++ b/examples/pugl_vulkan_cxx_demo.cpp
@@ -39,7 +39,6 @@
#include "pugl/vulkan.hpp"
#include <vulkan/vk_platform.h>
-#include <vulkan/vulkan_core.h>
#include <algorithm>
#include <array>
diff --git a/include/pugl/gl.h b/include/pugl/gl.h
index a311416..3443d83 100644
--- a/include/pugl/gl.h
+++ b/include/pugl/gl.h
@@ -26,23 +26,23 @@
#ifndef PUGL_NO_INCLUDE_GL_H
# ifdef __APPLE__
-# include "OpenGL/gl.h"
+# include <OpenGL/gl.h>
# else
# ifdef _WIN32
# include <windows.h>
# endif
-# include "GL/gl.h"
+# include <GL/gl.h>
# endif
#endif
#ifndef PUGL_NO_INCLUDE_GLU_H
# ifdef __APPLE__
-# include "OpenGL/glu.h"
+# include <OpenGL/glu.h>
# else
# ifdef _WIN32
# include <windows.h>
# endif
-# include "GL/glu.h"
+# include <GL/glu.h>
# endif
#endif
diff --git a/include/pugl/vulkan.h b/include/pugl/vulkan.h
index 15f834c..6a0b046 100644
--- a/include/pugl/vulkan.h
+++ b/include/pugl/vulkan.h
@@ -25,7 +25,9 @@
#include "pugl/pugl.h"
-#include <vulkan/vulkan.h>
+#include <vulkan/vulkan_core.h>
+
+#include <stdint.h>
PUGL_BEGIN_DECLS
diff --git a/src/stub.h b/src/stub.h
index e61085c..c816679 100644
--- a/src/stub.h
+++ b/src/stub.h
@@ -19,6 +19,8 @@
#include "pugl/pugl.h"
+#include <stddef.h>
+
PUGL_BEGIN_DECLS
static inline PuglStatus
diff --git a/src/x11_gl.c b/src/x11_gl.c
index d0330b0..34152de 100644
--- a/src/x11_gl.c
+++ b/src/x11_gl.c
@@ -24,7 +24,6 @@
#include <GL/glx.h>
#include <X11/X.h>
#include <X11/Xlib.h>
-#include <X11/Xutil.h>
#include <stdint.h>
#include <stdio.h>
diff --git a/test/test_clipboard.c b/test/test_clipboard.c
index 5749b65..a458d00 100644
--- a/test/test_clipboard.c
+++ b/test/test_clipboard.c
@@ -28,6 +28,7 @@
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
+#include <string.h>
typedef struct {
PuglWorld* world;