Fix compilation for libc++ 3.9
[folly.git] / folly / portability / BitsFunctexcept.h
index 098d1e7bf4cfdfd823b3ccf1297fa73160998aed..080b0f33ba3e79249b652cfeace7491eb4a6132d 100644 (file)
 #include <folly/Portability.h>
 FOLLY_NAMESPACE_STD_BEGIN
 
+#if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3900
 [[noreturn]] void __throw_length_error(const char* msg);
 [[noreturn]] void __throw_logic_error(const char* msg);
 [[noreturn]] void __throw_out_of_range(const char* msg);
+#endif
 
 #ifdef _MSC_VER
 [[noreturn]] void __throw_bad_alloc();