File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ High-level aspects:
5959#include < utility>
6060
6161// IMPORTANT: This code block must stay BELOW the #include <stdexcept> above.
62+ // This is only requried on some builds with libc++ (one of three implementations
63+ // in https://github.com/llvm/llvm-project/blob/a9b64bb3180dab6d28bf800a641f9a9ad54d2c0c/libcxx/include/typeinfo#L271-L276
64+ // requiere it)
6265#if !defined(PYBIND11_EXPORT_GUARDED_DELETE)
63- # if defined(_LIBCPP_EXCEPTION)
64- # if defined(WIN32) || defined(_WIN32)
65- # error "UNEXPECTED: defined(_LIBCPP_EXCEPTION) && (defined(WIN32) || defined(_WIN32))"
66- # endif
66+ # if defined(__libcpp_version) && !defined(WIN32) && !defined(_WIN32)
6767# define PYBIND11_EXPORT_GUARDED_DELETE __attribute__ ((visibility(" default" )))
6868# else
6969# define PYBIND11_EXPORT_GUARDED_DELETE
You can’t perform that action at this time.
0 commit comments