aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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