SDL_intrin.h: fix error from old gcc.

This commit is contained in:
Ozkan Sezer
2026-07-04 00:47:55 +03:00
parent 31caedaf47
commit aad60dec77

View File

@@ -298,11 +298,13 @@ _m_prefetch(void *__P)
# 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)
# if __has_include(<arm_sve.h>)
# define SDL_SVE2_INTRINSICS 1
# if defined(__ARM_FEATURE_SVE)
# include <arm_sve.h>
# endif
# endif
# endif
#endif
#endif /* compiler version */