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
91741446
Commit
91741446
authored
Nov 04, 2020
by
Brendan Shanks
Committed by
Alexandre Julliard
Nov 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Force stack alignment on x86_64 with Clang.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2a9407dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
corecrt.h
include/msvcrt/corecrt.h
+6
-2
windef.h
include/windef.h
+6
-2
No files found.
include/msvcrt/corecrt.h
View file @
91741446
...
...
@@ -57,6 +57,10 @@
#endif
#endif
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
#if !defined(_MSC_VER) && !defined(__stdcall)
# ifdef __i386__
# ifdef __GNUC__
...
...
@@ -69,7 +73,7 @@
# error You need to define __stdcall for your compiler
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if
(__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3)
)
# if
__has_attribute(__force_align_arg_pointer__
)
# define __stdcall __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((ms_abi))
...
...
@@ -91,7 +95,7 @@
# define __cdecl __attribute__((__cdecl__))
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if
(__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3)
)
# if
__has_attribute(__force_align_arg_pointer__
)
# define __cdecl __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((ms_abi))
...
...
include/windef.h
View file @
91741446
...
...
@@ -31,6 +31,10 @@
# endif
/* STRICT */
#endif
/* NO_STRICT */
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -62,7 +66,7 @@ extern "C" {
# error You need to define __stdcall for your compiler
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if
(__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3)
)
# if
__has_attribute(__force_align_arg_pointer__
)
# define __stdcall __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((ms_abi))
...
...
@@ -84,7 +88,7 @@ extern "C" {
# define __cdecl __attribute__((__cdecl__))
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if
(__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3)
)
# if
__has_attribute(__force_align_arg_pointer__
)
# define __cdecl __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((ms_abi))
...
...
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