mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
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>
|
||||
|
||||
/* Fix for MSYS2 increasing _WIN32_WINNT to 0x0603*/
|
||||
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||
#ifdef _WIN32_WINNT
|
||||
#undef _WIN32_WINNT
|
||||
#endif
|
||||
#define _WIN32_WINNT 0x0600
|
||||
#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 <winerror.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user