Don't include windows.h on mingw.

This commit is contained in:
Jorge Acereda 2020-05-12 01:13:36 +02:00
parent a95fe95ab1
commit 4e744a00ae

View File

@ -1,6 +1,5 @@
#if defined(WIN32) || defined(_WIN32) || \
defined(__WIN32) && !defined(__CYGWIN__)
#include <BaseTsd.h>
#if (defined WIN32 || defined _WIN32 || defined __WIN32) && \
!defined __CYGWIN__ && !defined __MINGW32__
#include <windows.h>
typedef SSIZE_T ssize_t;
#endif