From: Nico Weber Date: Tue, 24 Apr 2012 23:43:40 +0000 (+0000) Subject: Expand #include_next in float.h from mingw to _msc_ver. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3030066ef0a6b291173691ec3388b5f590d06e68;p=clang Expand #include_next in float.h from mingw to _msc_ver. A test for this is checking if this compiles: #include 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 --- diff --git a/lib/Headers/float.h b/lib/Headers/float.h index 65b517d556..2cb13d3ed5 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() # include_next