mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-18 07:52:32 +01:00
Fixed issue with vsnprintf macro being defined under MSVC 9/2008 (bug 3887, r=dvander).
This commit is contained in:
parent
979e50dcb3
commit
b90b93e849
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user