summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-15 16:02:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-15 16:02:05 +0200
commite65d28484d3467bf34ab1749aca8a3a43d31b7b2 (patch)
treec2775f35947eaabb8aec23e7a9fd6b217679691e
parentRemoved the deprecated confusing E_BLOCK_WOOD (diff)
downloadcuberite-e65d28484d3467bf34ab1749aca8a3a43d31b7b2.tar
cuberite-e65d28484d3467bf34ab1749aca8a3a43d31b7b2.tar.gz
cuberite-e65d28484d3467bf34ab1749aca8a3a43d31b7b2.tar.bz2
cuberite-e65d28484d3467bf34ab1749aca8a3a43d31b7b2.tar.lz
cuberite-e65d28484d3467bf34ab1749aca8a3a43d31b7b2.tar.xz
cuberite-e65d28484d3467bf34ab1749aca8a3a43d31b7b2.tar.zst
cuberite-e65d28484d3467bf34ab1749aca8a3a43d31b7b2.zip
-rw-r--r--VC2008/Lua.vcproj6
-rw-r--r--VC2008/Squirrel3.vcproj4
-rw-r--r--VC2008/ToLua.vcproj6
-rw-r--r--VC2008/zlib.vcproj9
-rw-r--r--source/md5/md5.cpp2
5 files changed, 16 insertions, 11 deletions
diff --git a/VC2008/Lua.vcproj b/VC2008/Lua.vcproj
index d3a28748e..0285e2ad3 100644
--- a/VC2008/Lua.vcproj
+++ b/VC2008/Lua.vcproj
@@ -41,7 +41,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -104,7 +104,7 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
@@ -166,7 +166,7 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
diff --git a/VC2008/Squirrel3.vcproj b/VC2008/Squirrel3.vcproj
index 59ad61fd6..40f6c43de 100644
--- a/VC2008/Squirrel3.vcproj
+++ b/VC2008/Squirrel3.vcproj
@@ -43,7 +43,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\squirrel_3_0_1_stable\include"
- PreprocessorDefinitions="WIN32;_DEBUG"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
@@ -104,7 +104,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="../squirrel_3_0_1_stable/include"
- PreprocessorDefinitions="WIN32;NDEBUG"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
diff --git a/VC2008/ToLua.vcproj b/VC2008/ToLua.vcproj
index 4b9491a75..e93458358 100644
--- a/VC2008/ToLua.vcproj
+++ b/VC2008/ToLua.vcproj
@@ -42,7 +42,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../tolua++-1.0.93/include;../lua-5.1.4/src"
- PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -106,7 +106,7 @@
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="../tolua++-1.0.93/include;../lua-5.1.4/src"
- PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
@@ -169,7 +169,7 @@
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="../tolua++-1.0.93/include;../lua-5.1.4/src"
- PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
diff --git a/VC2008/zlib.vcproj b/VC2008/zlib.vcproj
index 95612b693..697038481 100644
--- a/VC2008/zlib.vcproj
+++ b/VC2008/zlib.vcproj
@@ -41,13 +41,14 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
+ DisableSpecificWarnings="4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -104,12 +105,13 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
+ DisableSpecificWarnings="4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@@ -166,12 +168,13 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
- PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
+ DisableSpecificWarnings="4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
diff --git a/source/md5/md5.cpp b/source/md5/md5.cpp
index 39337da5d..ddbd1a381 100644
--- a/source/md5/md5.cpp
+++ b/source/md5/md5.cpp
@@ -35,6 +35,8 @@ documentation and/or software.
/* interface header */
#include "md5.h"
+// _X 2012_07_15: disable MSVC warnings on "insecure" functions, such as sprintf() - we know they're being used securely here
+#define _CRT_SECURE_NO_WARNINGS