diff options
| -rw-r--r-- | llvm/include/llvm/System/FEnv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/System/FEnv.h b/llvm/include/llvm/System/FEnv.h index 57097d2f57a..042e43928bc 100644 --- a/llvm/include/llvm/System/FEnv.h +++ b/llvm/include/llvm/System/FEnv.h @@ -21,6 +21,12 @@ #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 { |

