From: rossb Date: Thu, 15 May 2008 04:35:30 +0000 (+0000) Subject: always use __vsnprintf with MSC X-Git-Tag: svn/1415~31 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=5a69e3875e45a69f3e29e7fbb96f739011fa7a4d;p=portaudio always use __vsnprintf with MSC --- diff --git a/src/common/pa_debugprint.c b/src/common/pa_debugprint.c index b788151..a878028 100644 --- a/src/common/pa_debugprint.c +++ b/src/common/pa_debugprint.c @@ -74,8 +74,11 @@ void PaUtil_SetDebugPrintFunction(PaUtilLogCallback cb) VERY dangerous alternative, vsprintf (with no n) */ -#if (_MSC_VER) && (_MSC_VER <= 1400) -#define VSNPRINTF _vsnprintf +#if _MSC_VER +/* Some Windows Mobile SDKs don't define vsnprintf but all define _vsnprintf (hopefully). + According to MSDN "vsnprintf is identical to _vsnprintf". So we use _vsnprintf with MSC. +*/ +#define VSNPRINTF _vsnprintf #else #define VSNPRINTF vsnprintf #endif