aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 12:23:24 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 15:43:29 +0200
commitfeb6c4f7952eafbc8c2203ef0c657ea3580ee441 (patch)
treed67ed34eb9955720fd63b961f9b07ce00f5321a9 /include
parent063ddc8db2831e1f79d7569c8fc80dd3d54f5cda (diff)
downloadpugl-feb6c4f7952eafbc8c2203ef0c657ea3580ee441.tar.gz
pugl-feb6c4f7952eafbc8c2203ef0c657ea3580ee441.tar.bz2
pugl-feb6c4f7952eafbc8c2203ef0c657ea3580ee441.zip
Add missing include guards
Diffstat (limited to 'include')
-rw-r--r--include/pugl/detail/mac.h5
-rw-r--r--include/pugl/detail/win.h5
-rw-r--r--include/pugl/detail/x11.h5
-rw-r--r--include/pugl/gl.h5
-rw-r--r--include/pugl/glu.h5
5 files changed, 25 insertions, 0 deletions
diff --git a/include/pugl/detail/mac.h b/include/pugl/detail/mac.h
index 7b64cfe..55f24ca 100644
--- a/include/pugl/detail/mac.h
+++ b/include/pugl/detail/mac.h
@@ -20,6 +20,9 @@
@brief Shared definitions for MacOS implementation.
*/
+#ifndef PUGL_DETAIL_MAC_H
+#define PUGL_DETAIL_MAC_H
+
#include "pugl/pugl.h"
#import <Cocoa/Cocoa.h>
@@ -53,3 +56,5 @@ struct PuglInternalsImpl {
uint32_t mods;
bool mouseTracked;
};
+
+#endif // PUGL_DETAIL_MAC_H
diff --git a/include/pugl/detail/win.h b/include/pugl/detail/win.h
index b0d92e0..0ead1fa 100644
--- a/include/pugl/detail/win.h
+++ b/include/pugl/detail/win.h
@@ -19,6 +19,9 @@
@brief Shared definitions for Windows implementation.
*/
+#ifndef PUGL_DETAIL_WIN_H
+#define PUGL_DETAIL_WIN_H
+
#include "pugl/detail/implementation.h"
#include <windows.h>
@@ -145,3 +148,5 @@ puglWinStubEnter(PuglView* view, const PuglEventExpose* expose);
PuglStatus
puglWinStubLeave(PuglView* view, const PuglEventExpose* expose);
+
+#endif // PUGL_DETAIL_WIN_H
diff --git a/include/pugl/detail/x11.h b/include/pugl/detail/x11.h
index b5ca75c..9788191 100644
--- a/include/pugl/detail/x11.h
+++ b/include/pugl/detail/x11.h
@@ -19,6 +19,9 @@
@brief Shared definitions for X11 implementation.
*/
+#ifndef PUGL_DETAIL_X11_H
+#define PUGL_DETAIL_X11_H
+
#include "pugl/detail/types.h"
#include "pugl/pugl.h"
@@ -74,3 +77,5 @@ struct PuglInternalsImpl {
};
PuglStatus puglX11StubConfigure(PuglView* view);
+
+#endif // PUGL_DETAIL_X11_H
diff --git a/include/pugl/gl.h b/include/pugl/gl.h
index 9f7a741..17352e1 100644
--- a/include/pugl/gl.h
+++ b/include/pugl/gl.h
@@ -22,6 +22,9 @@
pure portable programs.
*/
+#ifndef PUGL_GL_H
+#define PUGL_GL_H
+
// IWYU pragma: begin_exports
#ifdef __APPLE__
@@ -34,3 +37,5 @@
#endif
// IWYU pragma: end_exports
+
+#endif // PUGL_GL_H
diff --git a/include/pugl/glu.h b/include/pugl/glu.h
index 423a917..b67b7a0 100644
--- a/include/pugl/glu.h
+++ b/include/pugl/glu.h
@@ -22,6 +22,9 @@
pure portable programs.
*/
+#ifndef PUGL_GLU_H
+#define PUGL_GLU_H
+
// IWYU pragma: begin_exports
#ifdef __APPLE__
@@ -34,3 +37,5 @@
#endif
// IWYU pragma: end_exports
+
+#endif // PUGL_GLU_H