I've changed the include from windows.h to Xwindows.h. XWindows.h take care of some namespace clashes between windows and X11 headers. Please commit the changes to the vendor branch
Created attachment 1312 [details] [review] Changes #include <windows.h> to <Xwindows.h>
Created attachment 1818 [details] [review] Include Xwindows.h befor GL/gl.h on windows to prevent loading windows.h which pollutes our namespace with some symbols The patch for GL/gl.h is now obsolete
Comment on attachment 1818 [details] [review] Include Xwindows.h befor GL/gl.h on windows to prevent loading windows.h which pollutes our namespace with some symbols commited to HEAD /cvs/xorg/xc/ChangeLog,v <-- ChangeLog new revision: 1.747; previous revision: 1.746 /cvs/xorg/xc/lib/GL/glx/compsize.c,v <-- lib/GL/glx/compsize.c new revision: 1.4; previous revision: 1.3 /cvs/xorg/xc/programs/Xserver/GL/windows/glwrap.c,v <-- programs/Xserver/GL/windows/glwrap.c new revision: 1.4; previous revision: 1.3 /cvs/xorg/xc/programs/Xserver/GL/windows/glwindows.h,v <-- programs/Xserver/GL/windows/glwindows.h new revision: 1.4; previous revision: 1.3 /cvs/xorg/xc/programs/Xserver/GL/windows/ChangeLog,v <-- programs/Xserver/GL/windows/ChangeLog new revision: 1.6; previous revision: 1.5
marking bug as fixed
Created attachment 1819 [details] [review] define APIENTRY to prevent loading of window.h from GL/gl.h More files needed a change and some from mesa too. By defining APIENTRY for windows I can prevent <GL/gl.h> from loading <windows.h>
Comment on attachment 1819 [details] [review] define APIENTRY to prevent loading of window.h from GL/gl.h commited to head /cvs/xorg/xc/programs/Xserver/GL/glx/Imakefile,v <-- programs/Xserver/GL/glx/I makefile new revision: 1.6; previous revision: 1.5 /cvs/xorg/xc/programs/Xserver/GL/windows/Imakefile,v <-- programs/Xserver/GL/w indows/Imakefile new revision: 1.4; previous revision: 1.3 /cvs/xorg/xc/programs/Xserver/GL/windows/ChangeLog,v <-- programs/Xserver/GL/w indows/ChangeLog new revision: 1.7; previous revision: 1.6 /cvs/xorg/xc/ChangeLog,v <-- ChangeLog new revision: 1.748; previous revision: 1.747
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.