Add forgotten ltmain.sh from libtool-2.4.6
[libisds.git] / src / win32.h
blob4c066739562bb8b557175170ad48d48408692aba
1 #ifndef __ISDS_WIN32_SYSTEM_H
2 #define __ISDS_WIN32_SYSTEM_H
4 #define mkdir(x,y) mkdir(x)
5 // FIXME: Get real implementation of nl_langinfo
6 #define nl_langinfo(x) "CP1250"
8 #ifdef __GNUC__
9 // MinGW provides neither strtok_r() nor strtok_s().
10 // For now, we can at least use strtok() because it's thread-safe in MSVCRT.
11 #define strtok_r(x,y,z) strtok(x,y)
12 #else
13 #define strtok_r strtok_s
14 #endif
16 struct tm *gmtime_r(const time_t *timep, struct tm *result);
17 char *strndup(const char *s, size_t n);
19 // disabled under MinGW by -std=c99
20 _CRTIMP char* __cdecl __MINGW_NOTHROW strdup (const char*) __MINGW_ATTRIB_MALLOC;
22 #endif