]> git.tdb.fi Git - builder.git/commitdiff
Fix Windows platform checks
authorMikko Rasa <tdb@tdb.fi>
Tue, 17 Sep 2019 16:13:39 +0000 (19:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 17 Sep 2019 16:13:39 +0000 (19:13 +0300)
source/architecture.cpp

index 627ba66ccf6ab6defbcaa960c09fbca775845b14..ba25afd77b27c997656cb37f843e0a7092c5c646 100644 (file)
@@ -1,5 +1,5 @@
 #include <limits>
-#ifndef WIN32
+#ifndef _WIN32
 #include <sys/utsname.h>
 #endif
 #include <msp/strings/format.h>
@@ -86,7 +86,7 @@ Architecture::Architecture(Builder &b, const string &spec):
 {
        if(spec.empty())
        {
-#ifdef WIN32
+#ifdef _WIN32
                system = "windows";
 #else
                utsname un;