--- desmume-0.9.13/src/libretro-common/features/features_cpu.c.orig 2026-10-17 21:46:48.283050154 +0200 +++ desmume/src/libretro-common/features/features_cpu.c 2026-10-17 21:46:48.291153427 +0200 @@ -317,7 +317,7 @@ static void arm_enable_runfast_mode(void static unsigned char check_arm_cpu_feature(const char* feature) { -#if __ARM_ARCH < 8 +#if defined(__ARM_ARCH) && __ARM_ARCH < 8 uint64_t hwcap = getauxval(AT_HWCAP); if (!strcmp(feature, "neon")) return (hwcap & HWCAP_ARM_NEON) != 0; @@ -326,7 +326,7 @@ static unsigned char check_arm_cpu_featu if (!strcmp(feature, "vfpv4")) return (hwcap & HWCAP_ARM_VFPv4) != 0; return 0; -#elif __ARM_ARCH == 8 +#elif defined(__ARM_ARCH) && __ARM_ARCH == 8 uint64_t hwcap = getauxval(AT_HWCAP); if (!strcmp(feature, "asimd")) return (hwcap & HWCAP_ASIMD) != 0;