From a44eb16360f3a2896e28c888b33a62ead3868f4d Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 4 Jun 2006 03:57:45 +0000 Subject: [PATCH] MSVC8 fixes again, what the heck did I do before? o_O --- dlls/geoip/GeoIP.h | 13 +++++++++++++ dlls/geoip/msvc8/geoip.vcproj | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/geoip/GeoIP.h b/dlls/geoip/GeoIP.h index 06211df4..a46fca1e 100755 --- a/dlls/geoip/GeoIP.h +++ b/dlls/geoip/GeoIP.h @@ -25,6 +25,19 @@ extern "C" { #endif +#ifdef _MSC_VER + #if _MSC_VER >= 1400 + /* Disable deprecation warnings concerning unsafe CRT functions */ + #define _CRT_SECURE_NO_DEPRECATE + + /* Replace the POSIX function with ISO C++ conformant one as it is now deprecated */ + #define fileno _fileno + + /* Disable deprecation warnings because MSVC8 seemingly thinks ISO C++ conformant functions are deprecated. */ + #pragma warning (disable : 4996) + #endif +#endif + #include #include #include diff --git a/dlls/geoip/msvc8/geoip.vcproj b/dlls/geoip/msvc8/geoip.vcproj index a08e8bbb..14fed890 100644 --- a/dlls/geoip/msvc8/geoip.vcproj +++ b/dlls/geoip/msvc8/geoip.vcproj @@ -209,11 +209,11 @@ Name="GeoIP" >