瀏覽代碼

glad.hpp: Fix include inside a namespace

These includes should not be inside a namespace.
Gleb Mazovetskiy 5 年之前
父節點
當前提交
186fa4e0ad
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/libraries/glad/glad.hpp

+ 8 - 8
src/libraries/glad/glad.hpp

@@ -62,14 +62,6 @@
 
 
 #include <stddef.h>
 #include <stddef.h>
 
 
-namespace glad {
-
-bool gladLoadGL(void);
-
-typedef void* (* LOADER)(const char *name);
-bool gladLoadGLLoader(LOADER);
-
-
 #ifndef GLEXT_64_TYPES_DEFINED
 #ifndef GLEXT_64_TYPES_DEFINED
 /* This code block is duplicated in glxext.h, so must be protected */
 /* This code block is duplicated in glxext.h, so must be protected */
 #define GLEXT_64_TYPES_DEFINED
 #define GLEXT_64_TYPES_DEFINED
@@ -107,6 +99,14 @@ typedef unsigned __int64 uint64_t;
 #include <inttypes.h>
 #include <inttypes.h>
 #endif
 #endif
 #endif
 #endif
+
+namespace glad {
+
+bool gladLoadGL(void);
+
+typedef void* (* LOADER)(const char *name);
+bool gladLoadGLLoader(LOADER);
+
 typedef unsigned int GLenum;
 typedef unsigned int GLenum;
 typedef unsigned char GLboolean;
 typedef unsigned char GLboolean;
 typedef unsigned int GLbitfield;
 typedef unsigned int GLbitfield;