On FreeBSD, define a macro that causes the unimplemented C99 math.h functions to be declared. This prevents <cmath> users from being broken, unless they actually use the C++ wrappers that call the missing functions.

llvm-svn: 144501
This commit is contained in:
David Chisnall 2011-11-13 17:15:33 +00:00
parent 1871ed3d79
commit 5e8e0448c3

View File

@ -374,6 +374,9 @@ template <unsigned> struct __static_assert_check {};
#if __APPLE__ || __FreeBSD__ || _WIN32
#define _LIBCPP_LOCALE__L_EXTENSIONS 1
#endif
#if __FreeBSD__
#define _DECLARE_C99_LDBL_MATH 1
#endif
#if __APPLE__ || __FreeBSD__
#define _LIBCPP_HAS_DEFAULTRUNELOCALE