diff options
Diffstat (limited to 'libcxx/include/cfenv')
| -rw-r--r-- | libcxx/include/cfenv | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/cfenv b/libcxx/include/cfenv index e42b46680d15..16b3761ee27b 100644 --- a/libcxx/include/cfenv +++ b/libcxx/include/cfenv @@ -54,8 +54,17 @@ int feupdateenv(const fenv_t* envp); #include <__assert> // all public C++ headers provide the assertion handler #include <__config> + #include <fenv.h> +#ifndef _LIBCPP_FENV_H +# error <cfenv> tried including <fenv.h> but didn't find libc++'s <fenv.h> header. \ + This usually means that your header search paths are not configured properly. \ + The header search paths should contain the C++ Standard Library headers before \ + any C Standard Library, and you are probably using compiler flags that make that \ + not be the case. +#endif + #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif |
