Fix building with MinGW
authorSfan5 <sfan5@live.de>
Wed, 15 Jan 2014 16:35:00 +0000 (17:35 +0100)
committerSfan5 <sfan5@live.de>
Wed, 15 Jan 2014 16:35:00 +0000 (17:35 +0100)
src/httpfetch.cpp

index 3d944735876234645d046de772f2881027fdc215..2b93ade8b846cf1ca65758a80f5b03aaa783b780 100644 (file)
@@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <list>
 #include <map>
 #include <errno.h>
-#ifndef _MSC_VER
+#ifndef _WIN32
 #include <sys/utsname.h>
 #endif
 #include "jthread/jevent.h"
@@ -51,7 +51,7 @@ std::map<unsigned long, std::list<HTTPFetchResult> > g_httpfetch_results;
                connect_timeout = timeout * 5;
                
                useragent = std::string("Minetest ") + minetest_version_hash;
-#ifdef _MSC_VER
+#ifdef _WIN32
                useragent += "Windows";
 #else
                struct utsname osinfo;