1
0
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:
Scott Ehlert 2009-11-14 00:49:35 -06:00
parent 979e50dcb3
commit b90b93e849
8 changed files with 12 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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