From 3030066ef0a6b291173691ec3388b5f590d06e68 Mon Sep 17 00:00:00 2001 From: Nico Weber <nicolasweber@gmx.de> Date: Tue, 24 Apr 2012 23:43:40 +0000 Subject: [PATCH] Expand #include_next in float.h from mingw to _msc_ver. A test for this is checking if this compiles: #include <float.h> inline bool IsFinite(const double& number) { return _finite(number) != 0; } That depends however on either mingw or msvc being installed, and chapuni tells me there might be issues with float.h on mingw, so no automated test is added. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155507 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/float.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Headers/float.h b/lib/Headers/float.h index 65b517d556f..2cb13d3ed55 100644 --- a/lib/Headers/float.h +++ b/lib/Headers/float.h @@ -28,7 +28,7 @@ * additional definitions provided for Windows. * For more details see http://msdn.microsoft.com/en-us/library/y0ybw9fy.aspx */ -#if defined(__MINGW32__) && \ +#if (defined(__MINGW32__) || defined(_MSC_VER)) && \ defined(__has_include_next) && __has_include_next(<float.h>) # include_next <float.h> -- GitLab