From: Sfan5 Date: Wed, 15 Jan 2014 16:35:00 +0000 (+0100) Subject: Fix building with MinGW X-Git-Tag: 0.4.10~314 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5287b6777f4146f3f687bf4c0515c636720ee9e;p=oweals%2Fminetest.git Fix building with MinGW --- 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 #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;