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
1902eba2
Commit
1902eba2
authored
Apr 23, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Don't override keywords with macros on MSVC.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
79664eb1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
22 deletions
+16
-22
corecrt.h
include/msvcrt/corecrt.h
+2
-6
windef.h
include/windef.h
+14
-16
No files found.
include/msvcrt/corecrt.h
View file @
1902eba2
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
#endif
#endif
#endif
#endif
#if
ndef __stdcall
#if
!defined(_MSC_VER) && !defined(__stdcall)
# ifdef __i386__
# ifdef __i386__
# ifdef __GNUC__
# ifdef __GNUC__
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
...
@@ -57,8 +57,6 @@
...
@@ -57,8 +57,6 @@
# else
# else
# define __stdcall __attribute__((__stdcall__))
# define __stdcall __attribute__((__stdcall__))
# endif
# endif
# elif defined(_MSC_VER)
/* Nothing needs to be done. __stdcall already exists */
# else
# else
# error You need to define __stdcall for your compiler
# error You need to define __stdcall for your compiler
# endif
# endif
...
@@ -77,7 +75,7 @@
...
@@ -77,7 +75,7 @@
# endif
/* __i386__ */
# endif
/* __i386__ */
#endif
/* __stdcall */
#endif
/* __stdcall */
#if
ndef __cdecl
#if
!defined(_MSC_VER) && !defined(__cdecl)
# if defined(__i386__) && defined(__GNUC__)
# 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__))
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
...
@@ -94,8 +92,6 @@
...
@@ -94,8 +92,6 @@
# define __cdecl __attribute__((pcs("aapcs-vfp")))
# define __cdecl __attribute__((pcs("aapcs-vfp")))
# elif defined(__aarch64__) && defined (__GNUC__)
# elif defined(__aarch64__) && defined (__GNUC__)
# define __cdecl __attribute__((ms_abi))
# define __cdecl __attribute__((ms_abi))
# elif !defined(_MSC_VER)
# define __cdecl
# endif
# endif
#endif
/* __cdecl */
#endif
/* __cdecl */
...
...
include/windef.h
View file @
1902eba2
...
@@ -50,7 +50,7 @@ extern "C" {
...
@@ -50,7 +50,7 @@ extern "C" {
# endif
# endif
#endif
#endif
#if
ndef __stdcall
#if
!defined(_MSC_VER) && !defined(__stdcall)
# ifdef __i386__
# ifdef __i386__
# ifdef __GNUC__
# ifdef __GNUC__
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)) || defined(__APPLE__)
...
@@ -58,8 +58,6 @@ extern "C" {
...
@@ -58,8 +58,6 @@ extern "C" {
# else
# else
# define __stdcall __attribute__((__stdcall__))
# define __stdcall __attribute__((__stdcall__))
# endif
# endif
# elif defined(_MSC_VER)
/* Nothing needs to be done. __stdcall already exists */
# else
# else
# error You need to define __stdcall for your compiler
# error You need to define __stdcall for your compiler
# endif
# endif
...
@@ -78,7 +76,7 @@ extern "C" {
...
@@ -78,7 +76,7 @@ extern "C" {
# endif
/* __i386__ */
# endif
/* __i386__ */
#endif
/* __stdcall */
#endif
/* __stdcall */
#if
ndef __cdecl
#if
!defined(_MSC_VER) && !defined(__cdecl)
# if defined(__i386__) && defined(__GNUC__)
# 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__))
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
...
@@ -100,10 +98,8 @@ extern "C" {
...
@@ -100,10 +98,8 @@ extern "C" {
# endif
# endif
#endif
/* __cdecl */
#endif
/* __cdecl */
#ifndef __fastcall
#if !defined(_MSC_VER) && !defined(__fastcall)
# ifndef _MSC_VER
# define __fastcall __stdcall
# define __fastcall __stdcall
# endif
#endif
#endif
#ifndef __thiscall
#ifndef __thiscall
...
@@ -140,12 +136,7 @@ extern "C" {
...
@@ -140,12 +136,7 @@ extern "C" {
#define __ONLY_IN_WINELIB(x) x
#define __ONLY_IN_WINELIB(x) x
#endif
#endif
#ifndef pascal
#ifndef _MSC_VER
#define pascal __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef _pascal
#define _pascal __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef _stdcall
#ifndef _stdcall
#define _stdcall __ONLY_IN_WINELIB(__stdcall)
#define _stdcall __ONLY_IN_WINELIB(__stdcall)
#endif
#endif
...
@@ -155,16 +146,23 @@ extern "C" {
...
@@ -155,16 +146,23 @@ extern "C" {
#ifndef __fastcall
#ifndef __fastcall
#define __fastcall __ONLY_IN_WINELIB(__stdcall)
#define __fastcall __ONLY_IN_WINELIB(__stdcall)
#endif
#endif
#ifndef __export
#define __export __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef cdecl
#ifndef cdecl
#define cdecl __ONLY_IN_WINELIB(__cdecl)
#define cdecl __ONLY_IN_WINELIB(__cdecl)
#endif
#endif
#ifndef _cdecl
#ifndef _cdecl
#define _cdecl __ONLY_IN_WINELIB(__cdecl)
#define _cdecl __ONLY_IN_WINELIB(__cdecl)
#endif
#endif
#endif
/* _MSC_VER */
#ifndef pascal
#define pascal __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef _pascal
#define _pascal __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef __export
#define __export __ONLY_IN_WINELIB(__stdcall)
#endif
#ifndef near
#ifndef near
#define near __ONLY_IN_WINELIB(
/* nothing */
)
#define near __ONLY_IN_WINELIB(
/* nothing */
)
#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