aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2014-01-15 17:35:00 +0100
committerSfan5 <sfan5@live.de>2014-01-15 17:35:00 +0100
commita5287b6777f4146f3f687bf4c0515c636720ee9e (patch)
tree5bc655fb9ad62a4ec3e3cd7c7d15041c090adc35
parent84bbe1ec6e5f76ab8b9e11ebf247f82dcad17330 (diff)
downloadminetest-a5287b6777f4146f3f687bf4c0515c636720ee9e.tar.gz
minetest-a5287b6777f4146f3f687bf4c0515c636720ee9e.tar.bz2
minetest-a5287b6777f4146f3f687bf4c0515c636720ee9e.zip
Fix building with MinGW
-rw-r--r--src/httpfetch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp
index 3d9447358..2b93ade8b 100644
--- a/src/httpfetch.cpp
+++ b/src/httpfetch.cpp
@@ -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;