From 186fa4e0add07261fb559689e7e229d245d218a1 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 11 Oct 2020 10:27:32 +0100 Subject: [PATCH] glad.hpp: Fix include inside a namespace These includes should not be inside a namespace. --- src/libraries/glad/glad.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libraries/glad/glad.hpp b/src/libraries/glad/glad.hpp index 195d20544..1672a44cf 100644 --- a/src/libraries/glad/glad.hpp +++ b/src/libraries/glad/glad.hpp @@ -62,14 +62,6 @@ #include -namespace glad { - -bool gladLoadGL(void); - -typedef void* (* LOADER)(const char *name); -bool gladLoadGLLoader(LOADER); - - #ifndef GLEXT_64_TYPES_DEFINED /* This code block is duplicated in glxext.h, so must be protected */ #define GLEXT_64_TYPES_DEFINED @@ -107,6 +99,14 @@ typedef unsigned __int64 uint64_t; #include #endif #endif + +namespace glad { + +bool gladLoadGL(void); + +typedef void* (* LOADER)(const char *name); +bool gladLoadGLLoader(LOADER); + typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield;