| 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) |
| 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); |
| 133 |
|
extern char *fixargv0(); |