From de08751537b91dc805ad535b876818f825ea6cbd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 14 May 2026 11:42:54 -0700 Subject: [PATCH] Fixed build for older toolchains that don't have arm_sve.h --- include/SDL3/SDL_intrin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/SDL3/SDL_intrin.h b/include/SDL3/SDL_intrin.h index 5f90a9c9e6..05ae794c59 100644 --- a/include/SDL3/SDL_intrin.h +++ b/include/SDL3/SDL_intrin.h @@ -290,7 +290,8 @@ _m_prefetch(void *__P) # endif # elif defined(SDL_PLATFORM_MACOS) /* Apple has no AArch64 device supporting SVE2 */ -# elif defined(__ARM_ARCH) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64)) +# elif defined(__ARM_ARCH) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64)) && \ + defined(__has_include) && __has_include() # define SDL_SVE2_INTRINSICS 1 # include # endif