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
da94dd4a
Commit
da94dd4a
authored
Jul 09, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use inline versions of APIs only internally in Wine.
parent
064cce0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
winbase.h
include/winbase.h
+9
-5
No files found.
include/winbase.h
View file @
da94dd4a
...
...
@@ -1856,7 +1856,7 @@ BOOL WINAPI wine_get_unix_file_name( LPCSTR dos, LPSTR buffer, DWORD len
/* a few optimizations for i386/gcc */
#if defined(__i386__) && defined(__GNUC__)
#if defined(__i386__) && defined(__GNUC__)
&& defined(__WINESRC__)
extern
inline
LONG
WINAPI
InterlockedCompareExchange
(
PLONG
dest
,
LONG
xchg
,
LONG
compare
);
extern
inline
LONG
WINAPI
InterlockedCompareExchange
(
PLONG
dest
,
LONG
xchg
,
LONG
compare
)
...
...
@@ -1935,7 +1935,8 @@ extern inline HANDLE WINAPI GetProcessHeap(void)
return
pdb
[
0x18
/
sizeof
(
HANDLE
)];
/* get dword at offset 0x18 in pdb */
}
#elif defined(__GNUC__) && defined(__powerpc__)
#elif defined(__GNUC__) && defined(__powerpc__) && defined(__WINESRC__)
extern
inline
LONG
WINAPI
InterlockedCompareExchange
(
PLONG
dest
,
LONG
xchg
,
LONG
compare
);
extern
inline
LONG
WINAPI
InterlockedCompareExchange
(
PLONG
dest
,
LONG
xchg
,
LONG
compare
)
{
...
...
@@ -2004,8 +2005,10 @@ DWORD WINAPI GetLastError(void);
DWORD
WINAPI
GetCurrentProcessId
(
void
);
DWORD
WINAPI
GetCurrentThreadId
(
void
);
void
WINAPI
SetLastError
(
DWORD
err
);
HANDLE
WINAPI
GetProcessHeap
(
void
);
#else
/* __i386__ && __GNUC__ */
HANDLE
WINAPI
GetProcessHeap
(
void
);
#else
/* __powerpc__ && __GNUC__ && __WINESRC__ */
DWORD
WINAPI
GetCurrentProcessId
(
void
);
DWORD
WINAPI
GetCurrentThreadId
(
void
);
DWORD
WINAPI
GetLastError
(
void
);
...
...
@@ -2016,7 +2019,8 @@ LONG WINAPI InterlockedExchange(PLONG,LONG);
LONG
WINAPI
InterlockedExchangeAdd
(
PLONG
,
LONG
);
LONG
WINAPI
InterlockedIncrement
(
PLONG
);
VOID
WINAPI
SetLastError
(
DWORD
);
#endif
/* __i386__ && __GNUC__ */
#endif
/* __i386__ && __GNUC__ && __WINESRC__ */
/* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
static
inline
PVOID
WINAPI
InterlockedCompareExchangePointer
(
PVOID
*
dest
,
PVOID
xchg
,
PVOID
compare
)
...
...
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