Fix inclusion of windows.h breaking things with its defines

This commit is contained in:
brainiac 2026-04-03 01:49:20 -07:00
parent d58bc01755
commit 29034e14fe
5 changed files with 6 additions and 4 deletions

View File

@ -51,7 +51,7 @@
# include <unistd.h>
#elif defined(TERMCOLOR_OS_WINDOWS)
# include <io.h>
# include <windows.h>
# include "common/platform/win/include_windows.h"
#endif

View File

@ -21,6 +21,7 @@
#include "common/types.h"
#include "mysql.h"
#include <memory>
#include <mutex>
#define CR_SERVER_GONE_ERROR 2006

View File

@ -33,10 +33,8 @@
#include <sys/stat.h>
#ifdef _WINDOWS
#include <conio.h>
#include "common/platform/platform.h"
#include <direct.h>
#include <process.h>
#include <windows.h>
#else
#include <sys/stat.h>
#include <thread>

View File

@ -19,7 +19,9 @@
#include "common/net/tcp_connection_pooling.h"
#include "common/platform/platform.h"
#include "uv.h"
#include <functional>
#include <memory>
#include <string>

View File

@ -19,6 +19,7 @@
#ifdef _WINDOWS
#include "common/platform/win/include_windows.h"
#include <WinSock2.h>
#endif // _WINDOWS