From 7b720ad26b589764078330aa924bde79c627c8f8 Mon Sep 17 00:00:00 2001 From: drex_vk Date: Fri, 7 Aug 2026 15:49:15 +0200 Subject: [PATCH] bootstrap.c: fix __WIN32__ macro -> _WIN32 Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35963 --- bootstrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.c b/bootstrap.c index 50297f34fdc429cdc75f1f338c4a9cd7d5aea5ab..e75e1c42ef0c8d59df5afb827d173ac755f60e18 100644 --- a/bootstrap.c +++ b/bootstrap.c @@ -56,7 +56,7 @@ static void panic(const char *reason) { #define GCC_BUG_119085_PRESENT 0 #endif -#if defined(__WIN32__) +#if defined(_WIN32) #error TODO write the functionality for executing child process into this build script #else @@ -99,7 +99,7 @@ static void print_and_run(const char **argv) { static const char *get_host_os(void) { const char *host_os = getenv("ZIG_HOST_TARGET_OS"); if (host_os != NULL) return host_os; -#if defined(__WIN32__) +#if defined(_WIN32) return "windows"; #elif defined(__APPLE__) return "macos"; -- 2.54.0