ReactOS 0.4.15-dev-8131-g4988de4
compat.h
Go to the documentation of this file.
1#pragma once
2
3#if defined(_WIN32)
4
5#ifdef _MSC_VER
6#define strcasecmp _stricmp
7#endif
8
9#include <direct.h>
10
11#define POPEN _popen
12#define PCLOSE _pclose
13#define MKDIR(d) _mkdir(d)
14#define DEV_NULL "NUL"
15#define DOS_PATHS
16#define PATH_CHAR '\\'
17#define PATH_STR "\\"
18#define PATHCMP strcasecmp
19#define CP_CMD "copy /Y "
20#define DIR_FMT "dir /a:-d /s /b %s > %s"
21
22#else /* not defined (_WIN32) */
23#include <sys/stat.h>
24
25#define POPEN popen
26#define PCLOSE pclose
27#define MKDIR(d) mkdir(d, S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH)
28#define DEV_NULL "/dev/null"
29#define UNIX_PATHS
30#define PATH_CHAR '/'
31#define PATH_STR "/"
32#define PATHCMP strcasecmp
33#define CP_CMD "cp -f "
34#define DIR_FMT "find %s -type f > %s"
35
36#endif /* not defined (_WIN32) */
37
38#ifndef PATH_MAX
39#define PATH_MAX 260
40#endif
41
42/* EOF */