2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2010-02-03 07:34:59 +00:00
|
|
|
|
2013-04-14 15:09:52 +00:00
|
|
|
#if defined(_WIN32)
|
2010-02-03 07:34:59 +00:00
|
|
|
|
2022-10-24 19:56:54 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define strcasecmp _stricmp
|
|
|
|
#endif
|
|
|
|
|
2010-02-03 07:34:59 +00:00
|
|
|
#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"
|
|
|
|
|
2013-04-14 15:09:52 +00:00
|
|
|
#else /* not defined (_WIN32) */
|
2010-02-03 07:34:59 +00:00
|
|
|
#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"
|
|
|
|
|
2013-04-14 15:09:52 +00:00
|
|
|
#endif /* not defined (_WIN32) */
|
2010-02-03 07:34:59 +00:00
|
|
|
|
2022-10-24 19:56:54 +00:00
|
|
|
#ifndef PATH_MAX
|
|
|
|
#define PATH_MAX 260
|
|
|
|
#endif
|
|
|
|
|
2010-02-10 12:10:23 +00:00
|
|
|
/* EOF */
|