Fix #1490 - add winerror.h to fix old mingw build

This commit is contained in:
Sergey Lyubka 2022-03-15 10:10:08 +00:00
parent d255fc737a
commit 1125b1f545
2 changed files with 2 additions and 0 deletions

View File

@ -371,6 +371,7 @@ typedef enum { false = 0, true = 1 } bool;
#endif #endif
#include <process.h> #include <process.h>
#include <winerror.h>
#include <winsock2.h> #include <winsock2.h>
// Protect from calls like std::snprintf in app code // Protect from calls like std::snprintf in app code

View File

@ -47,6 +47,7 @@ typedef enum { false = 0, true = 1 } bool;
#endif #endif
#include <process.h> #include <process.h>
#include <winerror.h>
#include <winsock2.h> #include <winsock2.h>
// Protect from calls like std::snprintf in app code // Protect from calls like std::snprintf in app code