From: Sfan5 Date: Wed, 15 Jan 2014 16:35:00 +0000 (+0100) Subject: Fix building with MinGW X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a5287b6777f4146f3f687bf4c0515c636720ee9e;p=zefram%2Fminetest%2Fminetest_engine.git Fix building with MinGW --- diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 3d944735..2b93ade8 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 #include #include -#ifndef _MSC_VER +#ifndef _WIN32 #include #endif #include "jthread/jevent.h" @@ -51,7 +51,7 @@ std::map > 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;