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
d1e46c5d
Commit
d1e46c5d
authored
Jan 15, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define __stdcall in msvcrt/process.h if windef.h hasn't been included.
parent
d5281fd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
16 deletions
+38
-16
process.h
include/msvcrt/process.h
+14
-1
windef.h
include/windef.h
+24
-15
No files found.
include/msvcrt/process.h
View file @
d1e46c5d
...
...
@@ -34,12 +34,25 @@ typedef unsigned short MSVCRT(wchar_t);
#define _WAIT_CHILD 0
#define _WAIT_GRANDCHILD 1
#ifndef __stdcall
# ifdef __i386__
# ifdef __GNUC__
# define __stdcall __attribute__((__stdcall__))
# elif defined(_MSC_VER)
/* Nothing needs to be done. __stdcall already exists */
# else
# error You need to define __stdcall for your compiler
# endif
# else
/* __i386__ */
# define __stdcall
# endif
/* __i386__ */
#endif
/* __stdcall */
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
void
(
__cdecl
*
_beginthread_start_routine_t
)(
void
*
);
typedef
void
(
*
_beginthread_start_routine_t
)(
void
*
);
typedef
unsigned
int
(
__stdcall
*
_beginthreadex_start_routine_t
)(
void
*
);
unsigned
long
_beginthread
(
_beginthread_start_routine_t
,
unsigned
int
,
void
*
);
...
...
include/windef.h
View file @
d1e46c5d
...
...
@@ -41,22 +41,31 @@ extern "C" {
/* Calling conventions definitions */
#ifdef __i386__
# ifndef _X86_
# define _X86_
#if defined(__i386__) && !defined(_X86_)
# define _X86_
#endif
#ifndef __stdcall
# ifdef __i386__
# ifdef __GNUC__
# define __stdcall __attribute__((__stdcall__))
# elif defined(_MSC_VER)
/* Nothing needs to be done. __stdcall already exists */
# else
# error You need to define __stdcall for your compiler
# endif
# else
/* __i386__ */
# define __stdcall
# endif
/* __i386__ */
#endif
/* __stdcall */
#ifndef __cdecl
# if defined(__i386__) && defined(__GNUC__)
# define __cdecl __attribute__((__cdecl__))
# elif !defined(_MSC_VER)
# define __cdecl
# endif
# if defined(__GNUC__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
# define __stdcall __attribute__((__stdcall__))
# define __cdecl __attribute__((__cdecl__))
# elif defined(_MSC_VER)
/* Nothing needs to be done. __cdecl/__stdcall already exists */
# else
# error You need gcc >= 2.7 to build Wine on a 386
# endif
/* __GNUC__ */
#else
/* __i386__ */
# define __stdcall
# define __cdecl
#endif
/* __i386__ */
#endif
/* __stdcall */
#ifndef __WINESRC__
...
...
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