This fixes building with MSVC after a2a38b160620d91bc3f895dadc4501c589998b9c. Remove the stray semicolon, and add casts for the input argument (which is an intptr_t*) to the right type (PVOID volatile *).
Showing the changes to compat (1 of 1 file). Show all
Unified · Split
| @@ -96,7 +96,7 @@ do { \ · 95 unmodified lines | ||
| 96 | 96 | atomic_load(object) |
| 97 | 97 | |
| 98 | 98 | #define atomic_exchange(object, desired) \ |
| 99 | − InterlockedExchangePointer(object, desired); | |
| 99 | + InterlockedExchangePointer((PVOID volatile *)object, (PVOID)desired) | |
| 100 | 100 | |
| 101 | 101 | #define atomic_exchange_explicit(object, desired, order) \ |
| 102 | 102 | atomic_exchange(object, desired) |