Browse Source

Try to fix something again?

rexim 5 years ago
parent
commit
7b30132939
1 changed files with 6 additions and 2 deletions
  1. 6 2
      nobuild2.h

+ 6 - 2
nobuild2.h

@@ -8,13 +8,11 @@
 #    include <sys/stat.h>
 #    include <unistd.h>
 #    include <dirent.h>
-#    define PATH_SEP "/"
      typedef pid_t Pid;
 #else
 #    define WIN32_MEAN_AND_LEAN
 #    include "windows.h"
 #    include <process.h>
-#    define PATH_SEP "\\"
 // minirent.h HEADER BEGIN ////////////////////////////////////////
     // Copyright 2021 Alexey Kutepov <[email protected]>
     //
@@ -73,6 +71,12 @@ typedef HANDLE Pid;
 
 #endif  // _WIN32
 
+#ifdef _WIN32
+#    define PATH_SEP "\\"
+#else
+#    define PATH_SEP "/"
+#endif // _WIN32
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>