diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-04-24 23:43:40 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-04-24 23:43:40 +0000 |
commit | cb93142e1fb8f064172a2ea4fc665c924c0ae6a9 (patch) | |
tree | f36b6ec223269808fd1f6b7a3d93e32fe2ace5b3 | |
parent | c4f4d056ab2ddeea53fd08304c1c4d7d6c251d11 (diff) | |
download | bcm5719-llvm-cb93142e1fb8f064172a2ea4fc665c924c0ae6a9.tar.gz bcm5719-llvm-cb93142e1fb8f064172a2ea4fc665c924c0ae6a9.zip |
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.
llvm-svn: 155507
-rw-r--r-- | clang/lib/Headers/float.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Headers/float.h b/clang/lib/Headers/float.h index 65b517d556f..2cb13d3ed55 100644 --- a/clang/lib/Headers/float.h +++ b/clang/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> |