From b64903a81949bdb7762076cd9d25660f188754dc Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 25 Nov 2025 02:16:54 +0100 Subject: [PATCH] Attempt to fix compile failure on ARM64 builds. --- src/include/86box/86box.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/86box/86box.h b/src/include/86box/86box.h index 62204c40e..12eb5dbb5 100644 --- a/src/include/86box/86box.h +++ b/src/include/86box/86box.h @@ -114,6 +114,7 @@ #define ATOMIC_DOUBLE_ADD(var, val) ((var) += (val)) #else /* On ARM and other architectures, use proper atomics */ +#ifdef failing_code #ifdef __cplusplus # include using atomic_int = std::atomic; @@ -121,6 +122,11 @@ #else # include #endif +#else + #ifndef __cplusplus + # include + #endif +#endif #define ATOMIC_INT atomic_int #define ATOMIC_UINT atomic_uint