msvcrt: Define __CxxLongjmpUnwind for i386 only.
diff --git a/dlls/msvcrt/cppexcept.c b/dlls/msvcrt/cppexcept.c
index e556353..ec1f364 100644
--- a/dlls/msvcrt/cppexcept.c
+++ b/dlls/msvcrt/cppexcept.c
@@ -424,6 +424,21 @@
"add $28,%esp\n\t"
"ret" );
+
+/*********************************************************************
+ * __CxxLongjmpUnwind (MSVCRT.@)
+ *
+ * Callback meant to be used as UnwindFunc for setjmp/longjmp.
+ */
+void __stdcall __CxxLongjmpUnwind( const struct MSVCRT___JUMP_BUFFER *buf )
+{
+ cxx_exception_frame *frame = (cxx_exception_frame *)buf->Registration;
+ const cxx_function_descr *descr = (const cxx_function_descr *)buf->UnwindData[0];
+
+ TRACE( "unwinding frame %p descr %p trylevel %ld\n", frame, descr, buf->TryLevel );
+ cxx_local_unwind( frame, descr, buf->TryLevel );
+}
+
#endif /* __i386__ */
/*********************************************************************
@@ -469,17 +484,3 @@
{
return sizeof(cxx_exception_type);
}
-
-/*********************************************************************
- * __CxxLongjmpUnwind (MSVCRT.@)
- *
- * Callback meant to be used as UnwindFunc for setjmp/longjmp.
- */
-void __stdcall __CxxLongjmpUnwind( const struct MSVCRT___JUMP_BUFFER *buf )
-{
- cxx_exception_frame *frame = (cxx_exception_frame *)buf->Registration;
- const cxx_function_descr *descr = (const cxx_function_descr *)buf->UnwindData[0];
-
- TRACE( "unwinding frame %p descr %p trylevel %ld\n", frame, descr, buf->TryLevel );
- cxx_local_unwind( frame, descr, buf->TryLevel );
-}