summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-12 04:56:23 +0100
committerGravatar Nikias Bassen2013-11-12 04:56:23 +0100
commit4a7a0877fb91c5aefa82ac8ae63fdbb8f01ae7a4 (patch)
treee383da3e438ecece4a4fe35fbaa6c6c6c25ba4fa /src
parentc56c8103f51c20c6fcf99e8bc9d83c380f503a1b (diff)
downloadlibplist-4a7a0877fb91c5aefa82ac8ae63fdbb8f01ae7a4.tar.gz
libplist-4a7a0877fb91c5aefa82ac8ae63fdbb8f01ae7a4.tar.bz2
base64: fix compilation with win32
this is a temporary fix, we'll replace strtok_r with a custom implementation soon.
Diffstat (limited to 'src')
-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 = '=';