ReactOS
0.4.15-dev-4603-gb922b6d
compat.h
Go to the documentation of this file.
1
#pragma once
2
3
#if defined(_WIN32)
4
5
#include <
direct.h
>
6
7
#define POPEN _popen
8
#define PCLOSE _pclose
9
#define MKDIR(d) _mkdir(d)
10
#define DEV_NULL "NUL"
11
#define DOS_PATHS
12
#define PATH_CHAR '\\'
13
#define PATH_STR "\\"
14
#define PATHCMP strcasecmp
15
#define CP_CMD "copy /Y "
16
#define DIR_FMT "dir /a:-d /s /b %s > %s"
17
18
#else
/* not defined (_WIN32) */
19
#include <
sys/stat.h
>
20
21
#define POPEN popen
22
#define PCLOSE pclose
23
#define MKDIR(d) mkdir(d, S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH)
24
#define DEV_NULL "/dev/null"
25
#define UNIX_PATHS
26
#define PATH_CHAR '/'
27
#define PATH_STR "/"
28
#define PATHCMP strcasecmp
29
#define CP_CMD "cp -f "
30
#define DIR_FMT "find %s -type f > %s"
31
32
#endif
/* not defined (_WIN32) */
33
34
/* EOF */
stat.h
direct.h
sdk
tools
log2lines
compat.h
Generated on Wed May 25 2022 06:05:12 for ReactOS by
1.8.15