From feb6c4f7952eafbc8c2203ef0c657ea3580ee441 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 12:23:24 +0200 Subject: Add missing include guards --- include/pugl/detail/mac.h | 5 +++++ include/pugl/detail/win.h | 5 +++++ include/pugl/detail/x11.h | 5 +++++ include/pugl/gl.h | 5 +++++ include/pugl/glu.h | 5 +++++ 5 files changed, 25 insertions(+) (limited to 'include/pugl') 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 @@ -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 @@ -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 -- cgit v1.2.1