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
5a0c9270
Commit
5a0c9270
authored
Nov 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Force aligning stack pointer also for Mingw builds.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=50189
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
baec5f1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
30 deletions
+14
-30
corecrt.h
include/msvcrt/corecrt.h
+7
-15
windef.h
include/windef.h
+7
-15
No files found.
include/msvcrt/corecrt.h
View file @
5a0c9270
...
...
@@ -61,7 +61,8 @@
#define __has_attribute(x) 0
#endif
#if !defined(_MSC_VER) && !defined(__stdcall)
#ifndef _MSC_VER
# undef __stdcall
# ifdef __i386__
# ifdef __GNUC__
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
...
...
@@ -87,27 +88,18 @@
# endif
/* __i386__ */
#endif
/* __stdcall */
#if !defined(_MSC_VER) && !defined(__cdecl)
#ifndef _MSC_VER
# undef __cdecl
# if defined(__i386__) && defined(__GNUC__)
#
if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((__cdecl__))
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if __has_attribute(__force_align_arg_pointer__)
# define __cdecl __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((ms_abi))
# endif
# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define __cdecl __attribute__((pcs("aapcs-vfp")))
# elif defined(__aarch64__) && defined (__GNUC__)
# define __cdecl __attribute__((ms_abi))
# else
# define __cdecl
# define __cdecl
__stdcall
# endif
#endif
/* __cdecl */
#endif
#ifndef __ms_va_list
# if (defined(__x86_64__) || defined(__aarch64__)) && defined (__GNUC__)
...
...
include/windef.h
View file @
5a0c9270
...
...
@@ -54,7 +54,8 @@ extern "C" {
# endif
#endif
#if !defined(_MSC_VER) && !defined(__stdcall)
#ifndef _MSC_VER
# undef __stdcall
# ifdef __i386__
# ifdef __GNUC__
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
...
...
@@ -80,27 +81,18 @@ extern "C" {
# endif
/* __i386__ */
#endif
/* __stdcall */
#if !defined(_MSC_VER) && !defined(__cdecl)
#ifndef _MSC_VER
# undef __cdecl
# if defined(__i386__) && defined(__GNUC__)
#
if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((__cdecl__))
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# if __has_attribute(__force_align_arg_pointer__)
# define __cdecl __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((ms_abi))
# endif
# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define __cdecl __attribute__((pcs("aapcs-vfp")))
# elif defined(__aarch64__) && defined (__GNUC__)
# define __cdecl __attribute__((ms_abi))
# else
# define __cdecl
# define __cdecl
__stdcall
# endif
#endif
/* __cdecl */
#endif
#if !defined(_MSC_VER) && !defined(__fastcall)
# define __fastcall __stdcall
...
...
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