Prechádzať zdrojové kódy

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.
vurtun 9 rokov pred
rodič
commit
c957b49d04
1 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 5 5
      nuklear.h

+ 5 - 5
nuklear.h

@@ -2471,11 +2471,6 @@ struct nk_context {
     unsigned int seq;
 };
 
-#ifdef __cplusplus
-}
-#endif
-#endif /* NK_H_ */
-
 /* ==============================================================
  *                          MATH
  * =============================================================== */
@@ -2546,6 +2541,11 @@ template<typename T> 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_ */
+
 /*
  * ==============================================================
  *