Define FD_SETSIZE from CMake on Windows to avoid redef warnings.

This commit is contained in:
Sadie Powell 2023-06-19 17:41:04 +01:00
parent 7d202728c8
commit ee642e0687
2 changed files with 1 additions and 4 deletions

View File

@ -25,6 +25,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_compile_definitions(
"_WIN32_WINNT=0x0A00" # Set the minimum OS to Windows 10
"FD_SETSIZE=24000" # Increase the default socket limit to something reasonable
"NOMINMAX" # Avoid the Windows API breaking std::{min,max}
"NTDDI_VERSION=0x0A000005" # Set the minimum OS to Windows 10 1803 "Redstone 4"
"WIN32_LEAN_AND_MEAN" # Trim down the size of the included headers.

View File

@ -31,10 +31,6 @@
#include "win32service.h"
/* This defaults to 64, way too small for an ircd! */
#define FD_SETSIZE 24000
/* Macros for exporting symbols - dependent on what is being compiled */
#ifdef DLL_BUILD