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
644f497e
Commit
644f497e
authored
Nov 02, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use the hard-float calling convention for Windows APIs on ARM
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9aa298ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
crtdefs.h
include/msvcrt/crtdefs.h
+9
-1
windef.h
include/windef.h
+10
-1
No files found.
include/msvcrt/crtdefs.h
View file @
644f497e
...
...
@@ -60,6 +60,8 @@
# else
# define __stdcall __attribute__((ms_abi))
# endif
# elif defined(__arm__) && defined (__GNUC__)
# define __stdcall __attribute__((pcs("aapcs-vfp")))
# else
/* __i386__ */
# define __stdcall
# endif
/* __i386__ */
...
...
@@ -78,6 +80,8 @@
# else
# define __cdecl __attribute__((ms_abi))
# endif
# elif defined(__arm__) && defined (__GNUC__)
# define __cdecl __attribute__((pcs("aapcs-vfp")))
# elif !defined(_MSC_VER)
# define __cdecl
# endif
...
...
@@ -102,7 +106,11 @@
#endif
#ifndef WINAPIV
# define WINAPIV __cdecl
# if defined(__arm__) && defined (__GNUC__)
# define WINAPIV __attribute__((pcs("aapcs")))
# else
# define WINAPIV __cdecl
# endif
#endif
#ifndef DECLSPEC_ALIGN
...
...
include/windef.h
View file @
644f497e
...
...
@@ -69,6 +69,8 @@ extern "C" {
# else
# define __stdcall __attribute__((ms_abi))
# endif
# elif defined(__arm__) && defined (__GNUC__)
# define __stdcall __attribute__((pcs("aapcs-vfp")))
# else
/* __i386__ */
# define __stdcall
# endif
/* __i386__ */
...
...
@@ -87,6 +89,8 @@ extern "C" {
# else
# define __cdecl __attribute__((ms_abi))
# endif
# elif defined(__arm__) && defined (__GNUC__)
# define __cdecl __attribute__((pcs("aapcs-vfp")))
# elif !defined(_MSC_VER)
# define __cdecl
# endif
...
...
@@ -110,6 +114,12 @@ extern "C" {
# endif
#endif
#if defined(__arm__) && defined (__GNUC__)
# define WINAPIV __attribute__((pcs("aapcs")))
#else
# define WINAPIV __cdecl
#endif
#ifdef __WINESRC__
#define __ONLY_IN_WINELIB(x) do_not_use_this_in_wine
#else
...
...
@@ -179,7 +189,6 @@ extern "C" {
#define PASCAL __stdcall
#define CDECL __cdecl
#define _CDECL __cdecl
#define WINAPIV __cdecl
#define APIENTRY WINAPI
#define CONST __ONLY_IN_WINELIB(const)
...
...
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