Skip to content

Commit a399e91

Browse files
committed
Nope, need #ifdef _LIBCPP_VERSION
1 parent c08f725 commit a399e91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

objcxx_eh.cc

+2
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ extern "C"
537537
OBJC_PUBLIC
538538
void objc_exception_throw(id object)
539539
{
540+
#ifndef __GLIBCXX__
540541
// Don't bother with a mutex here. It doesn't matter if two threads set
541542
// these values at the same time.
542543
if (!done_setup)
@@ -558,6 +559,7 @@ void objc_exception_throw(id object)
558559

559560
done_setup = true;
560561
}
562+
#endif
561563

562564
id *exc = (id *)__cxa_allocate_exception(sizeof(id));
563565
*exc = object;

0 commit comments

Comments
 (0)