From e5f6d93df07be6a9a7f0c16c1861d72e520fcde6 Mon Sep 17 00:00:00 2001 From: beaglejoe Date: Tue, 12 Mar 2013 14:55:59 +0000 Subject: [PATCH] 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 --- src/libs/portability/portability.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/portability/portability.h b/src/libs/portability/portability.h index cf151b215..b320a8e43 100644 --- a/src/libs/portability/portability.h +++ b/src/libs/portability/portability.h @@ -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 #include #define snprintf SD_snprintf