Fixes Windows build
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5308 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 2d311099133195eba9eece8c177f2bbdc22f3ecd Former-commit-id: c5d6a58201535c83ebab05f1b0216956543fabf0
This commit is contained in:
parent
1d9b51690f
commit
e5f6d93df0
1 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,8 @@ PORTABILITY_API char *strtok_r(char *str, const char *delim, char **nextp);
|
|||
// * MSVC 6 : 1200 <= _MSC_VER < 1300
|
||||
// * MSVC 2003 : 1300 <= _MSC_VER < 1400
|
||||
// * MSVC 2005 : 1400 <= _MSC_VER < 1500
|
||||
// * MSVC 2008 : 1500 <= _MSC_VER
|
||||
// * MSVC 2008 : 1500 <= _MSC_VER < 1600
|
||||
// * MSVC 2010 : 1600 <= _MSC_VER
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#define isnan _isnan
|
||||
|
@ -101,6 +102,8 @@ PORTABILITY_API char *strtok_r(char *str, const char *delim, char **nextp);
|
|||
// Ticket #663 - MSVC implementation of snprintf is not safe
|
||||
// We provide our own version of the function,
|
||||
// that ensures 0 ending for the string.
|
||||
PORTABILITY_API int SD_snprintf(char *str, size_t size, const char *format, ...);
|
||||
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
#define snprintf SD_snprintf
|
||||
|
|
Loading…
Reference in a new issue