]> git.sesse.net Git - ffmpeg/commit
atomics: Fix the win32 atomic_exchange function
authorMartin Storsjö <martin@martin.st>
Sat, 3 Apr 2021 21:04:46 +0000 (00:04 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 4 Apr 2021 08:06:08 +0000 (11:06 +0300)
commitb1b7cc698bed7338ff692cd65fe304941eaf6bce
treef7676c33ef67609b6f5748ceb718f0b63504d74b
parent18dcbb0d6ce7434a76f8ebea40739e8eb5b14b78
atomics: Fix the win32 atomic_exchange function

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 *).

Signed-off-by: Martin Storsjö <martin@martin.st>
compat/atomics/win32/stdatomic.h