mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 23:53:19 +00:00
* Create a branch for USB experiments.
svn path=/branches/usb-experiments/; revision=72629
This commit is contained in:
parent
28d8ba0d3e
commit
0ee830d7a4
23049 changed files with 0 additions and 1313991 deletions
34
sdk/tools/log2lines/compat.h
Normal file
34
sdk/tools/log2lines/compat.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#include <direct.h>
|
||||
|
||||
#define POPEN _popen
|
||||
#define PCLOSE _pclose
|
||||
#define MKDIR(d) _mkdir(d)
|
||||
#define DEV_NULL "NUL"
|
||||
#define DOS_PATHS
|
||||
#define PATH_CHAR '\\'
|
||||
#define PATH_STR "\\"
|
||||
#define PATHCMP strcasecmp
|
||||
#define CP_CMD "copy /Y "
|
||||
#define DIR_FMT "dir /a:-d /s /b %s > %s"
|
||||
|
||||
#else /* not defined (_WIN32) */
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define POPEN popen
|
||||
#define PCLOSE pclose
|
||||
#define MKDIR(d) mkdir(d, S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH)
|
||||
#define DEV_NULL "/dev/null"
|
||||
#define UNIX_PATHS
|
||||
#define PATH_CHAR '/'
|
||||
#define PATH_STR "/"
|
||||
#define PATHCMP strcasecmp
|
||||
#define CP_CMD "cp -f "
|
||||
#define DIR_FMT "find %s -type f > %s"
|
||||
|
||||
#endif /* not defined (_WIN32) */
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue