Apply some compiler-specific hacks to resolve compiler errors
- Make the existing _WIN32_WINNT redefinition contingent on MinGW - Define a typedef for EDataFlow on MSVC
This commit is contained in:
parent
cd3bd1d9d5
commit
d3d3207214
|
@ -18,11 +18,19 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
/* Fix for MSYS2 increasing _WIN32_WINNT to 0x0603*/
|
||||||
|
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||||
#ifdef _WIN32_WINNT
|
#ifdef _WIN32_WINNT
|
||||||
#undef _WIN32_WINNT
|
#undef _WIN32_WINNT
|
||||||
#endif
|
#endif
|
||||||
#define _WIN32_WINNT 0x0600
|
#define _WIN32_WINNT 0x0600
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#else
|
||||||
|
typedef enum EDataFlow EDataFlow;
|
||||||
|
/* MinGW defines EDataFlow differently than MSVC does;
|
||||||
|
* this typedef smooths that over. */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winerror.h>
|
#include <winerror.h>
|
||||||
|
|
Loading…
Reference in New Issue