Clang's #include handling apparently doesn't work for libstdc++'s
authorDan Gohman <gohman@apple.com>
Mon, 11 Oct 2010 22:30:59 +0000 (22:30 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 11 Oct 2010 22:30:59 +0000 (22:30 +0000)
fenv.h. See PR6907 for details. Work around this in FEnv.h to fix
the seflhost build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116256 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/System/FEnv.h

index 57097d2f57a71fc61c033ad9bc9a824d20bab855..042e43928bcf727db300478ab1d7cedbc7d61170 100644 (file)
 #include <fenv.h>
 #endif
 
+// FIXME: Clang's #include handling apparently doesn't work for libstdc++'s
+// fenv.h; see PR6907 for details.
+#if defined(__clang__) && defined(_GLIBCXX_FENV_H)
+#undef HAVE_FENV_H
+#endif
+
 namespace llvm {
 namespace sys {