mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +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__
|
#ifndef __linux__
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#define vsnprintf _vsnprintf
|
#if defined _MSC_VER && _MSC_VER < 1500
|
||||||
|
#define vsnprintf _vsnprintf
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //_INCLUDE_OSLINK_H
|
#endif //_INCLUDE_OSLINK_H
|
||||||
|
@ -89,7 +89,7 @@
|
|||||||
# error Unsupported compiler
|
# error Unsupported compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SH_COMP==SH_COMP_MSVC
|
#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500
|
||||||
# define vsnprintf _vsnprintf
|
# define vsnprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@
|
|||||||
# error Unsupported compiler
|
# error Unsupported compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SH_COMP==SH_COMP_MSVC
|
#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500
|
||||||
# define vsnprintf _vsnprintf
|
# define vsnprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
# error Unsupported compiler
|
# error Unsupported compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SH_COMP==SH_COMP_MSVC
|
#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500
|
||||||
# define vsnprintf _vsnprintf
|
# define vsnprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -105,7 +105,9 @@ bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength);
|
|||||||
|
|
||||||
#ifndef __linux__
|
#ifndef __linux__
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#define vsnprintf _vsnprintf
|
#if defined _MSC_VER && _MSC_VER < 1500
|
||||||
|
#define vsnprintf _vsnprintf
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //_INCLUDE_OSLINK_H
|
#endif //_INCLUDE_OSLINK_H
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
# error Unsupported compiler
|
# error Unsupported compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SH_COMP==SH_COMP_MSVC
|
#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500
|
||||||
# define vsnprintf _vsnprintf
|
# define vsnprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
# error Unsupported compiler
|
# error Unsupported compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SH_COMP==SH_COMP_MSVC
|
#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500
|
||||||
# define vsnprintf _vsnprintf
|
# define vsnprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
# error Unsupported compiler
|
# error Unsupported compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SH_COMP==SH_COMP_MSVC
|
#if SH_COMP==SH_COMP_MSVC && _MSC_VER < 1500
|
||||||
# define vsnprintf _vsnprintf
|
# define vsnprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user