mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d: Fix InterlockedIncrement() and InterlockedDecrement() signatures.
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
# if HAVE_SYNC_ADD_AND_FETCH
|
||||
static inline ULONG InterlockedIncrement(ULONG volatile *x)
|
||||
static inline LONG InterlockedIncrement(LONG volatile *x)
|
||||
{
|
||||
return __sync_add_and_fetch(x, 1);
|
||||
}
|
||||
@ -47,7 +47,7 @@ static inline ULONG InterlockedIncrement(ULONG volatile *x)
|
||||
# endif /* HAVE_SYNC_ADD_AND_FETCH */
|
||||
|
||||
# if HAVE_SYNC_SUB_AND_FETCH
|
||||
static inline ULONG InterlockedDecrement(ULONG volatile *x)
|
||||
static inline LONG InterlockedDecrement(LONG volatile *x)
|
||||
{
|
||||
return __sync_sub_and_fetch(x, 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user