Skip to content

Commit fda35b6

Browse files
committed
[MSVCRT] Comment out _setjmp/longjmp
Our own implementation is better and passes more tests.
1 parent 386642c commit fda35b6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

dll/win32/msvcrt/except_i386.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ int CDECL _except_handler4_common( ULONG *cookie, void (*check_cookie)(void),
729729
}
730730

731731

732+
#ifndef __REACTOS__
732733
/*
733734
* setjmp/longjmp implementation
734735
*/
@@ -837,6 +838,7 @@ void __cdecl longjmp(_JUMP_BUFFER *jmp, int retval)
837838

838839
__wine_longjmp( (__wine_jmp_buf *)jmp, retval );
839840
}
841+
#endif // __REACTOS__
840842

841843
/*********************************************************************
842844
* _seh_longjmp_unwind (MSVCRT.@)

dll/win32/msvcrt/except_x86_64.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ ULONG_PTR get_exception_pc( DISPATCHER_CONTEXT *dispatch )
8787
}
8888

8989

90+
#ifndef __REACTOS__
9091
/*******************************************************************
9192
* longjmp (MSVCRT.@)
9293
*/
@@ -109,6 +110,7 @@ void __cdecl longjmp( _JUMP_BUFFER *jmp, int retval )
109110
__wine_longjmp( (__wine_jmp_buf *)jmp, retval );
110111
}
111112
#endif
113+
#endif // __REACTOS__
112114

113115
/*******************************************************************
114116
* _local_unwind (MSVCRT.@)

0 commit comments

Comments
 (0)