| ... | @@ -56,7 +56,7 @@ static void panic(const char *reason) { | ... | @@ -56,7 +56,7 @@ static void panic(const char *reason) { |
| 56 | #define GCC_BUG_119085_PRESENT 0 | 56 | #define GCC_BUG_119085_PRESENT 0 |
| 57 | #endif | 57 | #endif |
| 58 | | 58 | |
| 59 | #if defined(__WIN32__) | 59 | #if defined(_WIN32) |
| 60 | #error TODO write the functionality for executing child process into this build script | 60 | #error TODO write the functionality for executing child process into this build script |
| 61 | #else | 61 | #else |
| 62 | | 62 | |
| ... | @@ -99,7 +99,7 @@ static void print_and_run(const char **argv) { | ... | @@ -99,7 +99,7 @@ static void print_and_run(const char **argv) { |
| 99 | static const char *get_host_os(void) { | 99 | static const char *get_host_os(void) { |
| 100 | const char *host_os = getenv("ZIG_HOST_TARGET_OS"); | 100 | const char *host_os = getenv("ZIG_HOST_TARGET_OS"); |
| 101 | if (host_os != NULL) return host_os; | 101 | if (host_os != NULL) return host_os; |
| 102 | #if defined(__WIN32__) | 102 | #if defined(_WIN32) |
| 103 | return "windows"; | 103 | return "windows"; |
| 104 | #elif defined(__APPLE__) | 104 | #elif defined(__APPLE__) |
| 105 | return "macos"; | 105 | return "macos"; |