diff --git a/src/libraries/glad/glad.hpp b/src/libraries/glad/glad.hpp index b760a7c3d..00307f869 100644 --- a/src/libraries/glad/glad.hpp +++ b/src/libraries/glad/glad.hpp @@ -2,7 +2,7 @@ /** * The MIT License (MIT) * - * Copyright (c) 2013 David Herberth, modified by Alex Szpakowski + * Copyright (c) 2013 David Herberth, modified by Alex Szpakowski and Bart van Strien * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in @@ -59,6 +59,10 @@ #define GLAPI extern #endif +// Change by Bart van Strien +// Move stddef.h outside of the namespace to prevent importing all types into +// that namespace, breaking compilation further on. +#include namespace glad { bool gladLoadGL(void); @@ -67,7 +71,6 @@ typedef void* (* LOADER)(const char *name); bool gladLoadGLLoader(LOADER); -#include #ifndef GLEXT_64_TYPES_DEFINED /* This code block is duplicated in glxext.h, so must be protected */ #define GLEXT_64_TYPES_DEFINED