diff --git a/src/rt/rust_unwind.h b/src/rt/rust_unwind.h index ddc44b59627c..2a7e559d189d 100644 --- a/src/rt/rust_unwind.h +++ b/src/rt/rust_unwind.h @@ -6,9 +6,7 @@ #ifdef __APPLE__ #include -typedef int _Unwind_Action; typedef void _Unwind_Context; -typedef void _Unwind_Exception; typedef int _Unwind_Reason_Code; #else @@ -17,5 +15,12 @@ typedef int _Unwind_Reason_Code; #endif +#if (defined __APPLE__) || (defined __clang__) + +typedef int _Unwind_Action; +typedef void _Unwind_Exception; + +#endif + #endif