From: Dan Gohman Date: Mon, 11 Oct 2010 22:30:59 +0000 (+0000) Subject: Clang's #include handling apparently doesn't work for libstdc++'s X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d3d2ddc78ea901a5b11123374f50523ea86428cb;p=oota-llvm.git Clang's #include handling apparently doesn't work for libstdc++'s 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 --- diff --git a/include/llvm/System/FEnv.h b/include/llvm/System/FEnv.h index 57097d2f57a..042e43928bc 100644 --- a/include/llvm/System/FEnv.h +++ b/include/llvm/System/FEnv.h @@ -21,6 +21,12 @@ #include #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 {