summaryrefslogtreecommitdiffstats
path: root/include/GL
diff options
context:
space:
mode:
Diffstat (limited to 'include/GL')
-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 60669aaf620..ca0ab31328f 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