test _WIN64 before _WIN32 (64-bit compiler defines both macros)

This commit is contained in:
Stefan Weil 2011-09-30 14:12:44 -04:00 committed by Robert Reif
parent 1dcb8b2382
commit 2193572c9e
1 changed files with 3 additions and 3 deletions

View File

@ -52,10 +52,10 @@ Settings::Settings()
posix = false;
// This assumes the code you are checking is for the same architecture this is compiled on.
#if defined(_WIN32)
platform(Win32A);
#elif defined(_WIN64)
#if defined(_WIN64)
platform(Win64);
#elif defined(_WIN32)
platform(Win32A);
#else
platform(Unspecified);
#endif