Commit 4a7a0877 authored by Nikias Bassen's avatar Nikias Bassen

base64: fix compilation with win32

this is a temporary fix, we'll replace strtok_r with a custom implementation soon.
parent c56c8103
......@@ -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 = '=';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment