From bf942531c6c82f85ec24a95c9881f89f2feb52ba Mon Sep 17 00:00:00 2001 From: Glen Fraser Date: Tue, 21 Jan 2025 19:30:59 +0100 Subject: [PATCH] Fix Windows warnings about APIENTRY from GLAD library --- include/glad/glad.h | 5 +++++ 1 file changed, 5 insertions(+) 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