From 21c068f1916330e90f814bed461fe0821d1665ec Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 9 Oct 2011 16:36:37 +0000 Subject: checked in pd-0.43-0.src.tar.gz svn path=/trunk/; revision=15557 --- pd/portaudio/src/common/pa_debugprint.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pd/portaudio/src/common/pa_debugprint.c') diff --git a/pd/portaudio/src/common/pa_debugprint.c b/pd/portaudio/src/common/pa_debugprint.c index 33fcf32e..a878028c 100644 --- a/pd/portaudio/src/common/pa_debugprint.c +++ b/pd/portaudio/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 -- cgit v1.2.1