From c957b49d04281e965ab1cdc386752c3b28615e2c Mon Sep 17 00:00:00 2001 From: vurtun Date: Mon, 1 Aug 2016 21:54:41 +0200 Subject: [PATCH] Moved helper macros inside header guard A previous push request added some macros into the header file and I missed that it was outside the header include guard. This should now be fixed and not cause problem if included multiple times in different location. --- nuklear.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nuklear.h b/nuklear.h index 6ca8bad..67a1bc8 100644 --- a/nuklear.h +++ b/nuklear.h @@ -2471,11 +2471,6 @@ struct nk_context { unsigned int seq; }; -#ifdef __cplusplus -} -#endif -#endif /* NK_H_ */ - /* ============================================================== * MATH * =============================================================== */ @@ -2546,6 +2541,11 @@ template struct nk_alignof{struct Big {T x; char c;}; enum { #define NK_ALIGNOF(t) ((char*)(&((struct {char c; t _h;}*)0)->_h) - (char*)0) #endif +#ifdef __cplusplus +} +#endif +#endif /* NK_H_ */ + /* * ============================================================== *