mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 05:55:35 +00:00
Fix the horribly wrong check for atomic support with MSVC
This commit is contained in:
parent
2127c04987
commit
342614a6ec
|
@ -161,10 +161,12 @@ ELSEIF( MSVC )
|
|||
CHECK_CXX_SOURCE_RUNS("
|
||||
#include <Windows.h>
|
||||
int main() {
|
||||
int *x = _aligned_malloc(sizeof(int), 32);
|
||||
x = InterlockedIncrement(&x);
|
||||
free(x);
|
||||
return !x;
|
||||
unsigned int val;
|
||||
unsigned int *x = (unsigned int *)_aligned_malloc(sizeof(int), 32);
|
||||
*x = 0;
|
||||
val = InterlockedIncrement(x);
|
||||
_aligned_free(x);
|
||||
return !val;
|
||||
}"
|
||||
HAS_MSVC_ATOMICS
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue