File: win32.h

package info (click to toggle)
libisds 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,348 kB
  • ctags: 1,659
  • sloc: ansic: 24,898; sh: 11,772; makefile: 393; xml: 375; sed: 16
file content (21 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __ISDS_WIN32_SYSTEM_H
#define __ISDS_WIN32_SYSTEM_H

#define mkdir(x,y) mkdir(x)
// FIXME: Get real implementation of nl_langinfo
#define nl_langinfo(x) "CP1250"

#ifdef __GNUC__
// MinGW provides neither strtok_r() nor strtok_s().
// For now, we can at least use strtok() because it's thread-safe in MSVCRT.
#define strtok_r(x,y,z) strtok(x,y)
#else
#define strtok_r strtok_s
#endif

struct tm *gmtime_r(const time_t *timep, struct tm *result);

// disabled under MinGW by -std=c99
_CRTIMP char* __cdecl __MINGW_NOTHROW strdup (const char*) __MINGW_ATTRIB_MALLOC;

#endif