From fdfbbcefb2470d39726748d17696c577d37586a5 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 14 May 2026 12:00:55 -0700
Subject: [PATCH] Fixed error: "SVE support not enabled" building on Android
---
include/SDL3/SDL_intrin.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/SDL3/SDL_intrin.h b/include/SDL3/SDL_intrin.h
index 05ae794c59cc3..289a356b7c1cc 100644
--- a/include/SDL3/SDL_intrin.h
+++ b/include/SDL3/SDL_intrin.h
@@ -288,10 +288,10 @@ _m_prefetch(void *__P)
# define __ARM_FEATURE_SVE2 1 /* Set __ARM_FEATURE_SVE2 so that it can be used elsewhere, at compile time */
# define __ARM_ARCH 8
# endif
-# elif defined(SDL_PLATFORM_MACOS)
+# elif defined(SDL_PLATFORM_APPLE)
/* Apple has no AArch64 device supporting SVE2 */
# elif defined(__ARM_ARCH) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64)) && \
- defined(__has_include) && __has_include(<arm_sve.h>)
+ defined(__has_include) && __has_include(<arm_sve.h>) && defined(__ARM_FEATURE_SVE)
# define SDL_SVE2_INTRINSICS 1
# include <arm_sve.h>
# endif