tools: Detect windows platform with _WIN32 instead of _WINDOWS.

oldstable
Dylan Smith 2009-08-22 01:57:54 -04:00 committed by Alexandre Julliard
parent 6f0655242c
commit ba38f219d0
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;