aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormusil <tmusil@users.sourceforge.net>2007-07-05 14:51:23 +0000
committermusil <tmusil@users.sourceforge.net>2007-07-05 14:51:23 +0000
commit1249e522b4bc5753fabac0ccb11ff13613a3f669 (patch)
tree477efb12112779500ec52b60c66f44f5952b5d98
parent83b0e87f32388a3ea64440cfade4a06c684770e4 (diff)
w32 does not know vsnprintf()! use _vsnprintf(), dude...
svn path=/trunk/externals/zexy/; revision=7899
-rw-r--r--src/fwriteln.c4
-rw-r--r--src/zexy.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/fwriteln.c b/src/fwriteln.c
index b322642..ae09f9c 100644
--- a/src/fwriteln.c
+++ b/src/fwriteln.c
@@ -17,6 +17,10 @@
#include "zexy.h"
+#ifdef __WIN32__
+# define snprintf _snprintf
+#endif
+
#include <stdio.h>
#include <string.h>
diff --git a/src/zexy.c b/src/zexy.c
index 8a6a1c7..0d8311b 100644
--- a/src/zexy.c
+++ b/src/zexy.c
@@ -23,6 +23,11 @@
#include "z_zexy.h"
#include <stdarg.h>
+
+#ifdef __WIN32__
+# define vsnprintf _vsnprintf
+#endif
+
/* do a little help thing */
typedef struct zexy