MinGW & WIN32 define

Create issue
Issue #12 resolved
Aleksander Nitecki created an issue

glLoadGen 0.2.1, MinGW + MSYS. Commandline:

lua LoadGen.lua core_3_3 -style=pointer_cpp

"#ifdef WIN32" Causes problem with MinGW.

Solution may look like this (code from the top of GLFW header):

#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__))
 #define _WIN32
#endif /* _WIN32 */

And checking for _WIN32 instead for WIN32.

Comments (4)

  1. Log in to comment