1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +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:
Jesse Talavera-Greenberg 2023-06-17 21:35:12 -04:00 committed by LibretroAdmin
parent cd3bd1d9d5
commit d3d3207214

View File

@ -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>