authorgravatar for drex_vk@noreply.codeberg.orgdrex_vk <drex_vk@noreply.codeberg.org> 2026-08-07 15:49:15+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-07 15:49:15+02:00
log7b720ad26b589764078330aa924bde79c627c8f8
tree23ddad89aef5e860b385177dd923db8f8c18b5cc
parent340e53a65e8175b6d98b11ec2f33461395f722d1

bootstrap.c: fix __WIN32__ macro -> _WIN32

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35963

1 files changed, 2 insertions(+), 2 deletions(-)

bootstrap.c+2-2
...@@ -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 056 #define GCC_BUG_119085_PRESENT 0
57#endif57#endif
5858
59#if defined(__WIN32__)59#if defined(_WIN32)
60#error TODO write the functionality for executing child process into this build script60#error TODO write the functionality for executing child process into this build script
61#else61#else
6262
...@@ -99,7 +99,7 @@ static void print_and_run(const char **argv) {...@@ -99,7 +99,7 @@ static void print_and_run(const char **argv) {
99static const char *get_host_os(void) {99static 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";