Details
Description
When I build from 5.9 as of this moment (a3e4e367cf) I get the following error:
T:/Qt/5.9/msvc2015/include\QtGui/qopenglext.h:6491:25: error: typedef redefinition with different types ('void (GLenum, GLsizei, GLsizei, GLenum, GLenum, const void *) _attribute((stdcall))' (aka 'void (unsigned int, int, int, unsigned int, unsigned int, const void *) __attribute_((stdcall))') vs 'void (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)' (aka 'void (unsigned int, int, int, unsigned int, unsigned int, const void *)')) C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\GL/gl.h:1516:26: note: previous definition is here
There seems to be some conflict between Qt's GL headers and the windows SDK gl.h. One is __stdcall, the other isn't. The typedef in question is:
typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
So I guess it's something with APIENTRY being defined in different ways. It compiles fine for me if I comment out the GL.h include line in global.h.in, but that might well break the build somewhere else.
FWIW, the GL.h include line was added way back in a3cf9b0a3c, so I'm not sure how or if that still applies.