39 |
|
#define access _access |
40 |
|
#undef mktemp |
41 |
|
#define mktemp _mktemp |
42 |
+ |
#define fpurge(s) |
43 |
|
|
44 |
|
#include <string.h> |
45 |
|
#undef strcasecmp |
83 |
|
#define SET_FD_TEXT(fd) _setmode(fd,_O_TEXT) |
84 |
|
#define putenv _putenv |
85 |
|
|
86 |
< |
#else /* _WIN32 || _WIN64 */ |
86 |
> |
#else /* ! (_WIN32 || _WIN64) */ |
87 |
|
|
88 |
|
#ifdef AMIGA |
89 |
|
#define NON_POSIX |
94 |
|
#define RHAS_FORK_EXEC |
95 |
|
#endif |
96 |
|
|
97 |
+ |
#ifdef __linux__ |
98 |
+ |
#include <stdio_ext.h> |
99 |
+ |
#define fpurge __fpurge |
100 |
+ |
#endif |
101 |
|
/* everybody except Windows */ |
102 |
|
|
103 |
|
/* NOPs */ |
114 |
|
extern "C" { |
115 |
|
#endif |
116 |
|
|
117 |
< |
/* nothing to protect yet */ |
117 |
> |
#if defined(_WIN32) || defined(_WIN64) |
118 |
> |
|
119 |
> |
extern int usleep(__int64 usec); |
120 |
> |
|
121 |
> |
#endif /* _WIN32 || _WIN64 */ |
122 |
|
|
123 |
|
#ifdef __cplusplus |
124 |
|
} |