diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 4ecdd160..da682ea7 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -741,7 +741,7 @@ protected: } catch (error_already_set &e) { e.restore(); return nullptr; -#if defined(__GNUG__) && !defined(_LIBCPP_VERSION) +#ifdef __GLIBCXX__ } catch ( abi::__forced_unwind& ) { throw; #endif