Fix usingJEMalloc with Clang
[folly.git] / folly / detail / FunctionalExcept.h
index ec3446ad42c4dfe5028b6653f88b3e1dc9657fd4..a041378e1f1ca5baff542ee88c64e30d28f46b11 100644 (file)
@@ -19,6 +19,8 @@
 
 #include <folly/Portability.h>
 
+#if !FOLLY_HAVE_BITS_FUNCTEXCEPT_H
+
 FOLLY_NAMESPACE_STD_BEGIN
 
 FOLLY_NORETURN void __throw_length_error(const char* msg);
@@ -31,4 +33,8 @@ FOLLY_NORETURN void __throw_bad_alloc();
 
 FOLLY_NAMESPACE_STD_END
 
+#else
+#error This file should never be included if FOLLY_HAVE_BITS_FUNCTEXCEPT_H is set
+#endif
+
 #endif