From fecef388640a2eedb78d23158a3a38c01f145461 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 9 Oct 2020 17:12:05 -0400 Subject: [PATCH] refactor: simpler followup to #2569 (#2572) --- include/pybind11/pybind11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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