diff options
Diffstat (limited to 'PySide2/global.h.in')
-rw-r--r-- | PySide2/global.h.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/PySide2/global.h.in b/PySide2/global.h.in index 0c7e2114..3422f0d6 100644 --- a/PySide2/global.h.in +++ b/PySide2/global.h.in @@ -71,6 +71,15 @@ #endif #ifndef QT_NO_OPENGL +// Define export macros for Windows' gl.h +# ifdef Q_OS_WIN +# ifndef APIENTRY +# define APIENTRY +# endif +# ifndef WINGDIAPI +# define WINGDIAPI +# endif +# endif // Q_OS_WIN # include <@GL_H@> #endif // QT_NO_OPENGL |