[cfe-commits] [libcxx] r144501 - /libcxx/trunk/include/__config
David Chisnall
csdavec at swan.ac.uk
Sun Nov 13 09:15:33 PST 2011
Author: theraven
Date: Sun Nov 13 11:15:33 2011
New Revision: 144501
URL: http://llvm.org/viewvc/llvm-project?rev=144501&view=rev
Log:
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.
Modified:
libcxx/trunk/include/__config
Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=144501&r1=144500&r2=144501&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Sun Nov 13 11:15:33 2011
@@ -374,6 +374,9 @@
#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
More information about the cfe-commits
mailing list