From 1ed8bd4df050ddc71eed17fbccf7a81ca15e5334 Mon Sep 17 00:00:00 2001 From: Andrew McWatters Date: Sat, 14 Dec 2024 21:38:32 -0700 Subject: [PATCH] Update linker dependencies to include legacy_stdio_definitions.lib for Win32 builds --- mp/src/game/client/client_base.vpc | 3 ++- mp/src/game/server/server_base.vpc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mp/src/game/client/client_base.vpc b/mp/src/game/client/client_base.vpc index 749cf215f0..6b39679fde 100644 --- a/mp/src/game/client/client_base.vpc +++ b/mp/src/game/client/client_base.vpc @@ -67,8 +67,9 @@ $Configuration $SystemFrameworks "Carbon" [$OSXALL] $SystemLibraries "rt" [$LINUXALL] $IgnoreImportLibrary "TRUE" - $AdditionalDependencies "$BASE winmm.lib" [$WIN32] + $AdditionalDependencies "$BASE winmm.lib legacy_stdio_definitions.lib" [$WIN32] $AdditionalDependencies "$BASE wsock32.lib Ws2_32.lib" [$BUILD_REPLAY] + $ForceFileOutput "Multiply Defined Symbol Only (/FORCE:MULTIPLE)" [$VS2022] } } diff --git a/mp/src/game/server/server_base.vpc b/mp/src/game/server/server_base.vpc index 5e65233db7..03d50a8e2a 100644 --- a/mp/src/game/server/server_base.vpc +++ b/mp/src/game/server/server_base.vpc @@ -61,7 +61,7 @@ $Configuration $Linker { - $AdditionalDependencies "$BASE winmm.lib" [$WIN32] + $AdditionalDependencies "$BASE winmm.lib legacy_stdio_definitions.lib" [$WIN32] $SystemLibraries "iconv" [$OSXALL] } }