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 +++++ 3 files changed, 15 insertions(+) (limited to 'include/pugl/detail') 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 -- cgit v1.2.1