]> Repos - portaudio/commitdiff
always use __vsnprintf with MSC
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 15 May 2008 04:35:30 +0000 (04:35 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 15 May 2008 04:35:30 +0000 (04:35 +0000)
src/common/pa_debugprint.c

index b788151baf06f4ac6f56578b1cd924c68b025f70..a878028c51a02e24515401bd02af3acf6faab3b3 100644 (file)
@@ -74,8 +74,11 @@ void PaUtil_SetDebugPrintFunction(PaUtilLogCallback cb)
  VERY dangerous alternative, vsprintf (with no n)\r
  */\r
 \r
-#if (_MSC_VER) && (_MSC_VER <= 1400)\r
-#define VSNPRINTF  _vsnprintf\r
+#if _MSC_VER\r
+/* Some Windows Mobile SDKs don't define vsnprintf but all define _vsnprintf (hopefully).\r
+   According to MSDN "vsnprintf is identical to _vsnprintf". So we use _vsnprintf with MSC.\r
+*/\r
+#define VSNPRINTF  _vsnprintf \r
 #else\r
 #define VSNPRINTF  vsnprintf\r
 #endif\r