summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/base64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base64.c b/src/base64.c
index 96d49f3..acec723 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -21,6 +21,10 @@
#include <string.h>
#include "base64.h"
+#ifdef WIN32
+#define strtok_r strtok_s
+#endif
+
static const char base64_str[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static const char base64_pad = '=';