Does SDL_opengl.h need to include windows.h? |
Does SDL_opengl.h need to include windows.h? |
Sik
|
I know that on Visual Studio, including gl/gl.h requires also
including windows.h for some reason. On MinGW(-w64) this isn't the case and it can be left out. No idea how this applies to SDL_opengl.h but I wouldn't be surprised if there's a similar issue. 2015-01-27 21:02 GMT-03:00, jasonericson:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
SiPlus
|
It's used for APIENTRY, which is defined as __stdcall if ((_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)). Even though on ARM __stdcall is ignored, I think it would be better to keep including Windows.h to avoid possible problems in the future.
|
|||||||||||
|