From 26a07677379015fedf00f19c720b23de12dbbb1f Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 7 Apr 2006 10:02:13 +0000 Subject: [PATCH] MSVC8 Warning Fixes --- dlls/geoip/geolib/libGeoIP/GeoIP.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/dlls/geoip/geolib/libGeoIP/GeoIP.h b/dlls/geoip/geolib/libGeoIP/GeoIP.h index 06211df4..0e2f844a 100755 --- a/dlls/geoip/geolib/libGeoIP/GeoIP.h +++ b/dlls/geoip/geolib/libGeoIP/GeoIP.h @@ -25,14 +25,28 @@ extern "C" { #endif -#include -#include -#include +#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 #include /* for fstat */ #include /* for fstat */ //typedef int uint32_t; + #define SEGMENT_RECORD_LENGTH 3 #define STANDARD_RECORD_LENGTH 3 #define ORG_RECORD_LENGTH 4