tools: Detect windows platform with _WIN32 instead of _WINDOWS.
This commit is contained in:
parent
6f0655242c
commit
ba38f219d0
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue