warning: implicit declaration of function 'vsnprintf'
Allan Cornet [Mon, 12 Nov 2007 13:23:56 +0000 (13:23 +0000)]
scilab/modules/output_stream/src/c/sciprint_full.c

index 0ceccce..a2bb134 100644 (file)
@@ -5,6 +5,7 @@
 /* the long string is splitted in elements of length equal to the number of columns  */\r
 /* from lines()                                                                      */\r
 /*-----------------------------------------------------------------------------------*/\r
+#include <stdio.h>\r
 #include <string.h>\r
 #include "sciprint_full.h"\r
 #include "sciprint.h"\r
 #include "localization.h"\r
 #include "../../shell/includes/scilines.h"\r
 /*-----------------------------------------------------------------------------------*/\r
+#ifdef _MSC_VER\r
+#define vsnprintf _vsnprintf\r
+#endif\r
+/*-----------------------------------------------------------------------------------*/\r
 /* MAXCHARSSCIPRINT_FULL is for sciprint_full - more than this gets truncated */\r
 #define MAXCHARSSCIPRINT_FULL 5000  \r
 /*-----------------------------------------------------------------------------------*/\r