From b0ad946a87954a1384eb9ccf286c0b2cd11cb5b8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 23 Nov 2008 20:18:17 -0800 Subject: [PATCH] Fix loader building on windows. --- loader/loader.h | 1 + loader/msvc9/mm_loader.vcproj | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/loader/loader.h b/loader/loader.h index c31a740..ea64543 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -7,6 +7,7 @@ #if defined WIN32 #define WINDOWS_LEAN_AND_MEAN #include +#include #define PLATFORM_MAX_PATH MAX_PATH #define SH_COMP SH_COMP_MSVC #define PATH_SEP_STR "\\" diff --git a/loader/msvc9/mm_loader.vcproj b/loader/msvc9/mm_loader.vcproj index 93745e3..712035c 100644 --- a/loader/msvc9/mm_loader.vcproj +++ b/loader/msvc9/mm_loader.vcproj @@ -42,7 +42,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\core\sourcehook" - PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LOADER_EXPORTS;_CRT_SECURE_NO_WARNINGS" + PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LOADER_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -117,7 +117,7 @@ Optimization="2" EnableIntrinsicFunctions="true" AdditionalIncludeDirectories="..\..\core\sourcehook" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LOADER_EXPORTS;_CRT_SECURE_NO_WARNINGS" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LOADER_EXPORTS;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS" RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" @@ -174,6 +174,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > + + @@ -182,10 +186,6 @@ RelativePath="..\serverplugin.cpp" > - - @@ -196,6 +196,10 @@ Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > + + @@ -204,18 +208,14 @@ RelativePath="..\loader_bridge.h" > - - - - + +