Browse Source

Revert stupid attempts at fixing the build

rexim 5 years ago
parent
commit
9325a1a2d5
1 changed files with 3 additions and 8 deletions
  1. 3 8
      nobuild2.h

+ 3 - 8
nobuild2.h

@@ -8,11 +8,14 @@
 #    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 "\\"
+     typedef HANDLE Pid;
 // minirent.h HEADER BEGIN ////////////////////////////////////////
     // Copyright 2021 Alexey Kutepov <[email protected]>
     //
@@ -67,16 +70,8 @@
     #endif  // MINIRENT_H_
 // minirent.h HEADER END ////////////////////////////////////////
 
-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>