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
206e8b14
Commit
206e8b14
authored
Jan 29, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Update stdcall and cdecl definitions in crtdefs.h.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
77c313b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
crtdefs.h
include/msvcrt/crtdefs.h
+14
-6
No files found.
include/msvcrt/crtdefs.h
View file @
206e8b14
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#ifndef __stdcall
#ifndef __stdcall
# ifdef __i386__
# ifdef __i386__
# ifdef __GNUC__
# ifdef __GNUC__
# if
def __APPLE__
/* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
# if
(__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
# else
# else
# define __stdcall __attribute__((__stdcall__))
# define __stdcall __attribute__((__stdcall__))
...
@@ -55,21 +55,29 @@
...
@@ -55,21 +55,29 @@
# error You need to define __stdcall for your compiler
# error You need to define __stdcall for your compiler
# endif
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# elif defined(__x86_64__) && defined (__GNUC__)
# define __stdcall __attribute__((ms_abi))
# if (__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3))
# else
# define __stdcall __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((ms_abi))
# endif
# else
/* __i386__ */
# define __stdcall
# define __stdcall
# endif
# endif
/* __i386__ */
#endif
/* __stdcall */
#endif
/* __stdcall */
#ifndef __cdecl
#ifndef __cdecl
# if defined(__i386__) && defined(__GNUC__)
# if defined(__i386__) && defined(__GNUC__)
#
ifdef __APPLE__
/* Mac OS X uses 16-byte aligned stack and not a 4-byte one */
#
if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
# else
# else
# define __cdecl __attribute__((__cdecl__))
# define __cdecl __attribute__((__cdecl__))
# endif
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# elif defined(__x86_64__) && defined (__GNUC__)
# define __cdecl __attribute__((ms_abi))
# if (__GNUC__ > 5) || ((__GNUC__ == 5) && (__GNUC_MINOR__ >= 3))
# define __cdecl __attribute__((ms_abi)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((ms_abi))
# endif
# elif !defined(_MSC_VER)
# elif !defined(_MSC_VER)
# define __cdecl
# define __cdecl
# endif
# endif
...
...
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