From 88960d151ef9c34fe93c3fbda71707124dd91710 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 7 Nov 2013 17:15:51 +0000 Subject: [PATCH] Tell libc++abi whether or not libc++ has declared bad_array_length. llvm-svn: 194207 --- libcxx/include/new | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libcxx/include/new b/libcxx/include/new index 31bb5982eed0..ea4a4a01a993 100644 --- a/libcxx/include/new +++ b/libcxx/include/new @@ -94,6 +94,7 @@ public: }; #if defined(_LIBCPP_BUILDING_NEW) || (_LIBCPP_STD_VER > 11) + class _LIBCPP_EXCEPTION_ABI bad_array_length : public bad_alloc { @@ -102,7 +103,10 @@ public: virtual ~bad_array_length() _NOEXCEPT; virtual const char* what() const _NOEXCEPT; }; -#endif + +#define _LIBCPP_BAD_ARRAY_LENGTH_DEFINED + +#endif // defined(_LIBCPP_BUILDING_NEW) || (_LIBCPP_STD_VER > 11) _LIBCPP_FUNC_VIS void __throw_bad_alloc(); // not in C++ spec