summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/opengl/GL/glplatform.h
diff options
context:
space:
mode:
Diffstat (limited to 'make/stub_includes/opengl/GL/glplatform.h')
-rw-r--r--make/stub_includes/opengl/GL/glplatform.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/make/stub_includes/opengl/GL/glplatform.h b/make/stub_includes/opengl/GL/glplatform.h
index d922eaa1a..5d42943d7 100644
--- a/make/stub_includes/opengl/GL/glplatform.h
+++ b/make/stub_includes/opengl/GL/glplatform.h
@@ -24,7 +24,9 @@
# define GLAPIENTRY __stdcall
#else
/* non-Windows compilation */
-# define GLAPI extern
+# ifndef GLAPI
+# define GLAPI extern
+# endif
# define GLAPIENTRY
#endif /* WIN32 / CYGWIN bracket */