summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglfunctions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qglfunctions.h')
-rw-r--r--src/opengl/qglfunctions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opengl/qglfunctions.h b/src/opengl/qglfunctions.h
index 3989063f96..3d49b3ea3b 100644
--- a/src/opengl/qglfunctions.h
+++ b/src/opengl/qglfunctions.h
@@ -61,6 +61,11 @@ QT_BEGIN_NAMESPACE
typedef ptrdiff_t qgl_GLintptr;
typedef ptrdiff_t qgl_GLsizeiptr;
+#if defined(APIENTRY) && !defined(QGLF_APIENTRY)
+# define QGLF_APIENTRY APIENTRY
+#elif defined(GL_APIENTRY) && !defined(QGLF_APIENTRY)
+# define QGLF_APIENTRY GL_APIENTRY
+#endif
# ifndef QGLF_APIENTRYP
# ifdef QGLF_APIENTRY