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
a113aded
Commit
a113aded
authored
Apr 26, 2024
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Move InterlockedExchangeAdd64() definition before its first usage.
This fixes Wine tests compilation with Visual Studio 10.0. Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
86b26a9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
winnt.h
include/winnt.h
+10
-10
No files found.
include/winnt.h
View file @
a113aded
...
...
@@ -6958,16 +6958,6 @@ static FORCEINLINE __int64 InterlockedAnd64( __int64 volatile *dest, __int64 val
}
#endif
#if !defined(__i386__) || __has_builtin(_InterlockedDecrement64)
#pragma intrinsic(_InterlockedDecrement64)
__int64
_InterlockedDecrement64
(
__int64
volatile
*
);
#else
static
FORCEINLINE
__int64
InterlockedDecrement64
(
__int64
volatile
*
dest
)
{
return
InterlockedExchangeAdd64
(
dest
,
-
1
)
-
1
;
}
#endif
#if !defined(__i386__) || __has_builtin(_InterlockedExchangeAdd64)
#pragma intrinsic(_InterlockedExchangeAdd64)
__int64
_InterlockedExchangeAdd64
(
__int64
volatile
*
,
__int64
);
...
...
@@ -6980,6 +6970,16 @@ static FORCEINLINE __int64 InterlockedExchangeAdd64( __int64 volatile *dest, __i
}
#endif
#if !defined(__i386__) || __has_builtin(_InterlockedDecrement64)
#pragma intrinsic(_InterlockedDecrement64)
__int64
_InterlockedDecrement64
(
__int64
volatile
*
);
#else
static
FORCEINLINE
__int64
InterlockedDecrement64
(
__int64
volatile
*
dest
)
{
return
InterlockedExchangeAdd64
(
dest
,
-
1
)
-
1
;
}
#endif
#if !defined(__i386__) || __has_builtin(_InterlockedIncrement64)
#pragma intrinsic(_InterlockedIncrement64)
__int64
_InterlockedIncrement64
(
__int64
volatile
*
);
...
...
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