From b39d1e9b9d7c6a3109822f7159b5d0eae95ff086 Mon Sep 17 00:00:00 2001
From: Yang Tse <yangsita@gmail.com>
Date: Fri, 6 Jun 2008 18:44:39 +0000
Subject: [PATCH] MSVC does build Windows native targets

---
 acinclude.m4      | 3 ++-
 ares/acinclude.m4 | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index b3d64a1d6b..9d4ba3e2e8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -72,7 +72,8 @@ AC_DEFUN([CURL_CHECK_NATIVE_WINDOWS], [
       AC_COMPILE_IFELSE([
         AC_LANG_PROGRAM([[
         ]],[[
-#if defined(__MINGW32__) || defined(__MINGW32CE__)
+#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
+   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
           int dummy=1;
 #else
           Not a native Windows build target.
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index 8b124737ff..7b6b270160 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -50,7 +50,8 @@ AC_DEFUN([CURL_CHECK_NATIVE_WINDOWS], [
       AC_COMPILE_IFELSE([
         AC_LANG_PROGRAM([[
         ]],[[
-#if defined(__MINGW32__) || defined(__MINGW32CE__)
+#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
+   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
           int dummy=1;
 #else
           Not a native Windows build target.
-- 
GitLab