| 12 |
|
#include <sys/types.h> |
| 13 |
|
#include <sys/stat.h> |
| 14 |
|
|
| 15 |
< |
#ifdef _WIN32 |
| 15 |
> |
#if defined(_WIN32) || defined(_WIN64) |
| 16 |
|
#include <io.h> |
| 17 |
|
#include <direct.h> /* getcwd(), chdir(), _mkdir(), etc. */ |
| 18 |
+ |
#define getcwd _getcwd |
| 19 |
+ |
#define chdir _chdir |
| 20 |
|
|
| 21 |
|
#define access _access |
| 22 |
|
#define mkdir(dirname,perms) _mkdir(dirname) |
| 29 |
|
#endif |
| 30 |
|
#define kill(pid,sig) win_kill(pid,sig) |
| 31 |
|
#define nice(inc) win_nice(inc) |
| 32 |
< |
#define PATH_ MAX _MAX_PATH |
| 32 |
> |
#define PATH_MAX _MAX_PATH |
| 33 |
|
#define NULL_DEVICE "NUL" |
| 34 |
|
#define DIRSEP '/' |
| 35 |
|
#define ISDIRSEP(c) (((c)=='/') | ((c)=='\\')) |
| 127 |
|
extern "C" { |
| 128 |
|
#endif |
| 129 |
|
|
| 130 |
< |
#if _WIN32 |
| 130 |
> |
#if defined(_WIN32) || defined(_WIN64) |
| 131 |
|
extern FILE *win_popen(char *command, char *type); |
| 132 |
|
extern int win_pclose(FILE *p); |
| 131 |
– |
extern int win_kill(RT_PID pid, int sig /* ignored */); |
| 133 |
|
extern char *fixargv0(); |
| 134 |
|
#endif |
| 135 |
|
|