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