diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2011-11-13 17:15:33 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2011-11-13 17:15:33 +0000 |
commit | 5e8e0448c37054b60c208aa228f18341b31f54c5 (patch) | |
tree | 994e26ad1b730c2c0d50d03e3ebe849dcef4ee07 | |
parent | 1871ed3d79add9cce582d221056f91aa0e1cbf86 (diff) | |
download | bcm5719-llvm-5e8e0448c37054b60c208aa228f18341b31f54c5.tar.gz bcm5719-llvm-5e8e0448c37054b60c208aa228f18341b31f54c5.zip |
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
-rw-r--r-- | libcxx/include/__config | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index c78dab53ade..0f6c77dd981 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -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 |