MSVC++ compilation fix

This commit is contained in:
Bertrand Songis
2020-02-19 14:03:21 +01:00
parent aca4f4f160
commit 8b674f864a
@@ -74,9 +74,16 @@
#if defined(__MINGW32__) || !defined(__GNUC__) #if defined(__MINGW32__) || !defined(__GNUC__)
#include <windows.h> #include <windows.h>
#include <tchar.h>
#define sleep(x) Sleep(x)
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#define chdir _chdir
#define getcwd _getcwd
// remove windows default definitions // remove windows default definitions
#undef OPAQUE #undef OPAQUE
#undef RGB #undef RGB
#undef EXTERN_C
#endif #endif
#define OPACITY_MAX 0x0Fu #define OPACITY_MAX 0x0Fu