diff options
author | armenqa <armenqa@yandex-team.com> | 2024-01-19 12:23:50 +0300 |
---|---|---|
committer | armenqa <armenqa@yandex-team.com> | 2024-01-19 13:10:03 +0300 |
commit | 2de0149d0151c514b22bca0760b95b26c9b0b578 (patch) | |
tree | 2bfed9f3bce7e643ddf048bb61ce3dc0a714bcc2 /contrib/libs/cxxsupp/libcxx/include/cassert | |
parent | a8c06d218f12b2406fbce24d194885c5d7b68503 (diff) | |
download | ydb-2de0149d0151c514b22bca0760b95b26c9b0b578.tar.gz |
feat contrib: aiogram 3
Relates: https://st.yandex-team.ru/, https://st.yandex-team.ru/
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/cassert')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/cassert | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/cassert b/contrib/libs/cxxsupp/libcxx/include/cassert index 28fc0b10e9..761f57dee1 100644 --- a/contrib/libs/cxxsupp/libcxx/include/cassert +++ b/contrib/libs/cxxsupp/libcxx/include/cassert @@ -18,7 +18,14 @@ Macros: #include <__assert> // all public C++ headers provide the assertion handler #include <__config> -#include <assert.h> + +// <assert.h> is not provided by libc++ +#if __has_include(<assert.h>) +# include <assert.h> +# ifdef _LIBCPP_ASSERT_H +# error "If libc++ starts defining <assert.h>, the __has_include check should move to libc++'s <assert.h>" +# endif +#endif #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header |