summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/GL/gl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h
index 60669aaf62..ca0ab31328 100644
--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -61,6 +61,9 @@
# define GLAPI extern
# endif /* _STATIC_MESA support */
# define GLAPIENTRY __stdcall
+#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
+# define GLAPI extern
+# define GLAPIENTRY __stdcall
#else
/* non-Windows compilation */
# define GLAPI extern