diff --git a/core-legacy/oslink.h b/core-legacy/oslink.h index 3529456..a21ea4d 100644 --- a/core-legacy/oslink.h +++ b/core-legacy/oslink.h @@ -85,7 +85,9 @@ bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength); #ifndef __linux__ #define snprintf _snprintf - #define vsnprintf _vsnprintf + #if defined _MSC_VER && _MSC_VER < 1500 + #define vsnprintf _vsnprintf + #endif #endif #endif //_INCLUDE_OSLINK_H diff --git a/core-legacy/sourcehook/generate/sourcehook.h b/core-legacy/sourcehook/generate/sourcehook.h index 8fdc3ff..e98bf42 100644 --- a/core-legacy/sourcehook/generate/sourcehook.h +++ b/core-legacy/sourcehook/generate/sourcehook.h @@ -89,7 +89,7 @@ # error Unsupported compiler #endif -#if SH_COMP==SH_COMP_MSVC +#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500 # define vsnprintf _vsnprintf #endif diff --git a/core-legacy/sourcehook/generate/sourcehook.hxx b/core-legacy/sourcehook/generate/sourcehook.hxx index e2566e8..bf78003 100755 --- a/core-legacy/sourcehook/generate/sourcehook.hxx +++ b/core-legacy/sourcehook/generate/sourcehook.hxx @@ -89,7 +89,7 @@ # error Unsupported compiler #endif -#if SH_COMP==SH_COMP_MSVC +#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500 # define vsnprintf _vsnprintf #endif diff --git a/core-legacy/sourcehook/sourcehook.h b/core-legacy/sourcehook/sourcehook.h index f57594a..fecc7d7 100644 --- a/core-legacy/sourcehook/sourcehook.h +++ b/core-legacy/sourcehook/sourcehook.h @@ -99,7 +99,7 @@ # error Unsupported compiler #endif -#if SH_COMP==SH_COMP_MSVC +#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500 # define vsnprintf _vsnprintf #endif diff --git a/core/metamod_oslink.h b/core/metamod_oslink.h index e72b18b..3899faa 100644 --- a/core/metamod_oslink.h +++ b/core/metamod_oslink.h @@ -105,7 +105,9 @@ bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength); #ifndef __linux__ #define snprintf _snprintf - #define vsnprintf _vsnprintf + #if defined _MSC_VER && _MSC_VER < 1500 + #define vsnprintf _vsnprintf + #endif #endif #endif //_INCLUDE_OSLINK_H diff --git a/core/sourcehook/generate/sourcehook.h b/core/sourcehook/generate/sourcehook.h index 829b92c..708b802 100644 --- a/core/sourcehook/generate/sourcehook.h +++ b/core/sourcehook/generate/sourcehook.h @@ -94,7 +94,7 @@ # error Unsupported compiler #endif -#if SH_COMP==SH_COMP_MSVC +#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500 # define vsnprintf _vsnprintf #endif diff --git a/core/sourcehook/generate/sourcehook.hxx b/core/sourcehook/generate/sourcehook.hxx index 07f94eb..f59964e 100755 --- a/core/sourcehook/generate/sourcehook.hxx +++ b/core/sourcehook/generate/sourcehook.hxx @@ -94,7 +94,7 @@ # error Unsupported compiler #endif -#if SH_COMP==SH_COMP_MSVC +#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500 # define vsnprintf _vsnprintf #endif diff --git a/core/sourcehook/sourcehook.h b/core/sourcehook/sourcehook.h index 829b92c..708b802 100644 --- a/core/sourcehook/sourcehook.h +++ b/core/sourcehook/sourcehook.h @@ -94,7 +94,7 @@ # error Unsupported compiler #endif -#if SH_COMP==SH_COMP_MSVC +#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500 # define vsnprintf _vsnprintf #endif