mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Define FD_SETSIZE from CMake on Windows to avoid redef warnings.
This commit is contained in:
parent
7d202728c8
commit
ee642e0687
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user