diff --git a/include/glad/glad.h b/include/glad/glad.h index e897b698cf..e9070cf734 100644 --- a/include/glad/glad.h +++ b/include/glad/glad.h @@ -466,6 +466,9 @@ #ifndef __glad_h_ #define __glad_h_ +#pragma push_macro("APIENTRY") + + #ifdef __gl_h_ #error OpenGL header already included, remove this include, glad already provides it #endif @@ -14158,4 +14161,6 @@ GLAPI int GLAD_GL_S3_s3tc; } #endif +#pragma pop_macro("APIENTRY") + #endif