mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
clang on windows support
This commit is contained in:
parent
b08f544172
commit
1d44f05fba
22 changed files with 208 additions and 65 deletions
|
|
@ -41,7 +41,8 @@ static inline void atomic_int_set_win32(volatile int *ptr, int val)
|
|||
#define avpriv_atomic_int_add_and_fetch atomic_int_add_and_fetch_win32
|
||||
static inline int atomic_int_add_and_fetch_win32(volatile int *ptr, int inc)
|
||||
{
|
||||
return inc + InterlockedExchangeAdd(ptr, inc);
|
||||
/* Windows int and LONG are both 32-bit, but have distinct C types. */
|
||||
return inc + InterlockedExchangeAdd((volatile LONG *)ptr, inc);
|
||||
}
|
||||
|
||||
#define avpriv_atomic_ptr_cas atomic_ptr_cas_win32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue