Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3d72d260
Commit
3d72d260
authored
Nov 06, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Fix setjmp() support with 32-bit ucrtbase.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3bf90925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
setjmp.h
include/msvcrt/setjmp.h
+16
-4
No files found.
include/msvcrt/setjmp.h
View file @
3d72d260
...
...
@@ -143,18 +143,30 @@ typedef _JBTYPE jmp_buf[_JBLEN];
extern
"C"
{
#endif
int
__cdecl
_setjmp
(
jmp_buf
);
void
__cdecl
longjmp
(
jmp_buf
,
int
);
#if
defined(_WIN64) && defined(__GNUC__)
#if
def _WIN64
# ifdef _UCRT
# define _setjmpex __intrinsic_setjmpex
# endif
# ifdef __GNUC__
int
__cdecl
__attribute__
((
__nothrow__
,
__returns_twice__
))
_setjmpex
(
jmp_buf
,
void
*
);
# define setjmp(buf) _setjmpex(buf,__builtin_frame_address(0))
# define setjmpex(buf) _setjmpex(buf,__builtin_frame_address(0))
#else
# define setjmp _setjmp
# endif
#else
/* _WIN64 */
# ifdef _UCRT
# define _setjmp __intrinsic_setjmp
# endif
# ifdef __GNUC__
int
__cdecl
__attribute__
((
__nothrow__
,
__returns_twice__
))
_setjmp
(
jmp_buf
);
# else
int
__cdecl
_setjmp
(
jmp_buf
);
# endif
#endif
/* _WIN64 */
#ifndef setjmp
#define setjmp _setjmp
#endif
#ifdef __cplusplus
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment