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
1d168222
Commit
1d168222
authored
Mar 08, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Always use _setjmpex on non-i386 platforms.
parent
5c265132
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
17 deletions
+23
-17
setjmp.h
include/msvcrt/setjmp.h
+23
-17
No files found.
include/msvcrt/setjmp.h
View file @
1d168222
...
...
@@ -147,29 +147,35 @@ extern "C" {
_ACRTIMP
void
__cdecl
longjmp
(
jmp_buf
,
int
);
#ifdef _WIN64
# ifdef _UCRT
#ifndef __has_builtin
# define __has_builtin(x) 0
#endif
#ifdef _UCRT
# ifdef __i386__
# define _setjmp __intrinsic_setjmp
# else
# define _setjmpex __intrinsic_setjmpex
# endif
# if defined(__GNUC__) || defined(__clang__)
_ACRTIMP
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))
#endif
#ifdef __i386__
# if defined(_setjmp) || !__has_builtin(_setjmp)
_ACRTIMP
int
__cdecl
__attribute__
((
__nothrow__
,
__returns_twice__
))
_setjmp
(
jmp_buf
);
# endif
#else
/* _WIN64 */
# ifdef _UCRT
# define _setjmp __intrinsic_setjmp
# define setjmp(buf) _setjmp((buf))
#else
/* __i386__ */
# if defined(_setjmpex) || !__has_builtin(_setjmpex)
_ACRTIMP
int
__cdecl
__attribute__
((
__nothrow__
,
__returns_twice__
))
_setjmpex
(
jmp_buf
,
void
*
);
# endif
# if defined(__GNUC__) || defined(__clang__)
_ACRTIMP
int
__cdecl
__attribute__
((
__nothrow__
,
__returns_twice__
))
_setjmp
(
jmp_buf
);
# if __has_builtin(__builtin_sponentry)
# define setjmp(buf) _setjmpex((buf), __builtin_sponentry())
# elif __has_builtin(__builtin_frame_address)
# define setjmp(buf) _setjmpex((buf), __builtin_frame_address(0))
# else
_ACRTIMP
int
__cdecl
_setjmp
(
jmp_buf
);
# define setjmp(buf) _setjmpex((buf), NULL)
# endif
#endif
/* _WIN64 */
#ifndef setjmp
#define setjmp _setjmp
#endif
#endif
/* __i386__ */
#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