diff --git a/src/gui/opengl/qopengl.h b/src/gui/opengl/qopengl.h index 06135273337..c5bff90d2a9 100644 --- a/src/gui/opengl/qopengl.h +++ b/src/gui/opengl/qopengl.h @@ -46,6 +46,11 @@ #include +// Windows always needs this to ensure that APIENTRY gets defined +#if defined(Q_OS_WIN) +# include +#endif + // Note: Mac OSX is a "controlled platform" for OpenGL ABI so we // use the system provided headers there. Controlled means that the // headers always match the actual driver implementation so there @@ -101,9 +106,6 @@ typedef GLfloat GLdouble; # endif # include # else -# if defined(Q_OS_WIN) -# include -# endif # define GL_GLEXT_LEGACY // Prevents GL/gl.h form #including system glext.h # include # include