From ba38f219d0b1fa829d168f80e20c750857d84ef2 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Sat, 22 Aug 2009 01:57:54 -0400 Subject: [PATCH] tools: Detect windows platform with _WIN32 instead of _WINDOWS. --- tools/winebuild/main.c | 2 +- tools/winegcc/winegcc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c index bebb37b3656..9fef1c49b72 100644 --- a/tools/winebuild/main.c +++ b/tools/winebuild/main.c @@ -66,7 +66,7 @@ enum target_cpu target_cpu = CPU_POWERPC; enum target_platform target_platform = PLATFORM_APPLE; #elif defined(__sun) enum target_platform target_platform = PLATFORM_SOLARIS; -#elif defined(_WINDOWS) +#elif defined(_WIN32) enum target_platform target_platform = PLATFORM_WINDOWS; #else enum target_platform target_platform = PLATFORM_UNSPECIFIED; diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 56d9c5fa597..ad4aeb75ef1 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -224,7 +224,7 @@ static const enum target_cpu build_cpu = CPU_POWERPC; static enum target_platform build_platform = PLATFORM_APPLE; #elif defined(__sun) static enum target_platform build_platform = PLATFORM_SOLARIS; -#elif defined(_WINDOWS) +#elif defined(_WIN32) static enum target_platform build_platform = PLATFORM_WINDOWS; #else static enum target_platform build_platform = PLATFORM_UNSPECIFIED;