]> git.lizzy.rs Git - rust.git/blobdiff - src/rt/rust_unwind.h
rt: Fix build with clang on non-Mac
[rust.git] / src / rt / rust_unwind.h
index ddc44b59627c8b351989c3911ea4ee295723095a..2a7e559d189d366f93fa0cb262666bad233aa543 100644 (file)
@@ -6,9 +6,7 @@
 #ifdef __APPLE__
 #include <libunwind.h>
 
-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