Sfoglia il codice sorgente

Move cplusplus curly brace and RAYGUI_H endifs above (#137)

Dmitry Matveyev 4 anni fa
parent
commit
806b216e20
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      src/raygui.h

+ 6 - 6
src/raygui.h

@@ -496,6 +496,12 @@ RAYGUIDEF bool GuiCheckIconPixel(int iconId, int x, int y);     // Check icon pi
 #endif
 
 
+#if defined(__cplusplus)
+}            // Prevents name mangling of functions
+#endif
+
+#endif // RAYGUI_H
+
 /***********************************************************************************
 *
 *   RAYGUI IMPLEMENTATION
@@ -3673,9 +3679,3 @@ static const char *CodepointToUtf8(int codepoint, int *byteLength)
 #endif      // RAYGUI_STANDALONE
 
 #endif      // RAYGUI_IMPLEMENTATION
-
-#if defined(__cplusplus)
-}            // Prevents name mangling of functions
-#endif
-
-#endif // RAYGUI_H