From 4a7a0877fb91c5aefa82ac8ae63fdbb8f01ae7a4 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 12 Nov 2013 04:56:23 +0100 Subject: base64: fix compilation with win32 this is a temporary fix, we'll replace strtok_r with a custom implementation soon. --- src/base64.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include "base64.h" +#ifdef WIN32 +#define strtok_r strtok_s +#endif + static const char base64_str[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static const char base64_pad = '='; -- cgit v1.1-32-gdbae