|
@@ -8,11 +8,14 @@
|
|
|
# include <sys/stat.h>
|
|
# include <sys/stat.h>
|
|
|
# include <unistd.h>
|
|
# include <unistd.h>
|
|
|
# include <dirent.h>
|
|
# include <dirent.h>
|
|
|
|
|
+# define PATH_SEP "/"
|
|
|
typedef pid_t Pid;
|
|
typedef pid_t Pid;
|
|
|
#else
|
|
#else
|
|
|
# define WIN32_MEAN_AND_LEAN
|
|
# define WIN32_MEAN_AND_LEAN
|
|
|
# include "windows.h"
|
|
# include "windows.h"
|
|
|
# include <process.h>
|
|
# include <process.h>
|
|
|
|
|
+# define PATH_SEP "\\"
|
|
|
|
|
+ typedef HANDLE Pid;
|
|
|
// minirent.h HEADER BEGIN ////////////////////////////////////////
|
|
// minirent.h HEADER BEGIN ////////////////////////////////////////
|
|
|
// Copyright 2021 Alexey Kutepov <[email protected]>
|
|
// Copyright 2021 Alexey Kutepov <[email protected]>
|
|
|
//
|
|
//
|
|
@@ -67,16 +70,8 @@
|
|
|
#endif // MINIRENT_H_
|
|
#endif // MINIRENT_H_
|
|
|
// minirent.h HEADER END ////////////////////////////////////////
|
|
// minirent.h HEADER END ////////////////////////////////////////
|
|
|
|
|
|
|
|
-typedef HANDLE Pid;
|
|
|
|
|
-
|
|
|
|
|
#endif // _WIN32
|
|
#endif // _WIN32
|
|
|
|
|
|
|
|
-#ifdef _WIN32
|
|
|
|
|
-# define PATH_SEP "\\"
|
|
|
|
|
-#else
|
|
|
|
|
-# define PATH_SEP "/"
|
|
|
|
|
-#endif // _WIN32
|
|
|
|
|
-
|
|
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|