build: LLVM: Add Flang compiler support and enable OpenMP for Clang
[platform/upstream/openblas.git] / common_x86.h
index ab9f22b..4363fb2 100644 (file)
@@ -62,7 +62,7 @@ static void __inline blas_lock(volatile BLASULONG *address){
 
 #if defined(_MSC_VER) && !defined(__clang__)
        // use intrinsic instead of inline assembly
-       ret = _InterlockedExchange(address, 1);
+       ret = _InterlockedExchange((volatile LONG *)address, 1);
        // inline assembly
        /*__asm {
                mov eax, address