5 |
|
#ifndef _RAD_PLATFORM_H_ |
6 |
|
#define _RAD_PLATFORM_H_ |
7 |
|
|
8 |
+ |
#include "paths.h" |
9 |
+ |
|
10 |
|
#if defined(_WIN32) || defined(_WIN64) |
11 |
|
|
12 |
|
#include <io.h> /* _setmode() and stuff from unistd.h */ |
11 |
– |
#include <stdio.h> |
13 |
|
typedef long off_t; |
14 |
|
#undef ftello |
15 |
|
#define ftello _ftelli64 |
46 |
|
#define mktemp _mktemp |
47 |
|
#define fpurge(s) |
48 |
|
|
48 |
– |
#include <string.h> |
49 |
|
#undef strcasecmp |
50 |
|
#define strcasecmp _stricmp |
51 |
|
#undef strncasecmp |
71 |
|
|
72 |
|
#define NON_POSIX |
73 |
|
|
74 |
– |
#include <sys/types.h> |
75 |
– |
#include <sys/stat.h> |
74 |
|
#define RHAS_STAT |
75 |
|
#define S_IFREG _S_IFREG |
76 |
|
#define W_IFDIR _S_IFDIR |