vcpkg/ports/allegro5/msvc-arm64-atomic.patch
Kai Pastor 33ca2dcc24
[allegro5|baseline] Minor changes, expect CI fail for arm64-windows (#27294)
* CI [skip actions]

* Remove obsolete vars

* Minor changes

* Trim patching

* Fix arm64 MSVC build

* Update versions

* Use msvc arm64 atomic ops

* Declare license

* CI [skip actions]

* Update versions

* Update baseline
2022-10-18 18:25:28 -07:00

14 lines
494 B
Diff

diff --git a/include/allegro5/internal/aintern_atomicops.h b/include/allegro5/internal/aintern_atomicops.h
index 5054552..a4310f1 100644
--- a/include/allegro5/internal/aintern_atomicops.h
+++ b/include/allegro5/internal/aintern_atomicops.h
@@ -49,7 +49,7 @@
return old - 1;
})
-#elif defined(_MSC_VER) && _M_IX86 >= 400
+#elif defined(_MSC_VER) && (_M_IX86 >= 400 || defined(_M_ARM64))
/* MSVC, x86 */
/* MinGW supports these too, but we already have asm code above. */