[cfe-commits] r155507 - /cfe/trunk/lib/Headers/float.h
Nico Weber
nicolasweber at gmx.de
Tue Apr 24 16:43:40 PDT 2012
Author: nico
Date: Tue Apr 24 18:43:40 2012
New Revision: 155507
URL: http://llvm.org/viewvc/llvm-project?rev=155507&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Headers/float.h
Modified: cfe/trunk/lib/Headers/float.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/float.h?rev=155507&r1=155506&r2=155507&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/float.h (original)
+++ cfe/trunk/lib/Headers/float.h Tue Apr 24 18:43:40 2012
@@ -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>
More information about the cfe-commits
mailing list