#ifdef __APPLE__
#include <libunwind.h>
-typedef int _Unwind_Action;
typedef void _Unwind_Context;
-typedef void _Unwind_Exception;
typedef int _Unwind_Reason_Code;
#else
#endif
+#if (defined __APPLE__) || (defined __clang__)
+
+typedef int _Unwind_Action;
+typedef void _Unwind_Exception;
+
+#endif
+
#endif