From a5287b6777f4146f3f687bf4c0515c636720ee9e Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Wed, 15 Jan 2014 17:35:00 +0100 Subject: [PATCH] Fix building with MinGW --- src/httpfetch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2