Skip to content

Commit fecef38

Browse files
authored
refactor: simpler followup to #2569 (#2572)
1 parent c02f0ec commit fecef38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ class cpp_function : public function {
741741
} catch (error_already_set &e) {
742742
e.restore();
743743
return nullptr;
744-
#if defined(__GNUG__) && !defined(_LIBCPP_VERSION)
744+
#ifdef __GLIBCXX__
745745
} catch ( abi::__forced_unwind& ) {
746746
throw;
747747
#endif

0 commit comments

Comments
 (0)