Mercurial > repos > blastem
comparison config.c @ 795:bce97fc0bb8a
Fix mingw-w64 build and cross-compilation
author | =?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com> |
---|---|
date | Sun, 26 Jul 2015 10:59:41 -0700 |
parents | 1b2f8280ba81 |
children | 41f73c76b978 |
comparison
equal
deleted
inserted
replaced
790:e8b14d5a5b5a | 795:bce97fc0bb8a |
---|---|
7 #include "util.h" | 7 #include "util.h" |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
11 | 11 |
12 #ifdef _WIN32 | 12 #ifdef __MINGW64_VERSION_MAJOR |
13 #define MINGW_W64_VERSION (__MINGW64_VERSION_MAJOR * 1000 + __MINGW64_VERSION_MINOR) | |
14 #else | |
15 #define MINGW_W64_VERSION 0 | |
16 #endif | |
17 | |
18 #if defined(_WIN32) && (MINGW_W64_VERSION < 3003) | |
13 char * strtok_r(char * input, char * sep, char ** state) | 19 char * strtok_r(char * input, char * sep, char ** state) |
14 { | 20 { |
15 if (input) { | 21 if (input) { |
16 *state = input; | 22 *state = input; |
17 } | 23 } |