]> granicus.if.org Git - clang/commitdiff
<float.h>: Don't seek #include_next if -ffreestanding for targeting mingw.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 22 Oct 2014 01:25:49 +0000 (01:25 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 22 Oct 2014 01:25:49 +0000 (01:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220356 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/float.h

index 02ef6bf611a352237517454258db91fff2682316..238cf76b053c3c29544bb89ba50394d2a2ff0f6a 100644 (file)
@@ -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__) || defined(_MSC_VER)) && \
+#if (defined(__MINGW32__) || defined(_MSC_VER)) && __STDC_HOSTED__ && \
     __has_include_next(<float.h>)
 #  include_next <float.h>