Skip to content

Commit

Permalink
Fix Windows warnings about APIENTRY from GLAD library
Browse files Browse the repository at this point in the history
  • Loading branch information
totalgee committed Jan 21, 2025
1 parent 174c86b commit bf94253
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/glad/glad.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -14158,4 +14161,6 @@ GLAPI int GLAD_GL_S3_s3tc;
}
#endif

#pragma pop_macro("APIENTRY")

#endif

0 comments on commit bf94253

Please sign in to comment.