Try fixing compilation errors with -march=armv6.

Public issue https://github.com/dr-soft/miniaudio/issues/176
This commit is contained in:
David Reid
2020-07-13 15:12:51 +10:00
parent b4f490a1e8
commit 07bc119a1f
+3 -2
View File
@@ -6144,13 +6144,13 @@ static MA_INLINE void ma_yield()
#else #else
__asm__ __volatile__ ("pause"); __asm__ __volatile__ ("pause");
#endif #endif
#elif (defined(__arm__) && defined(__ARM_ARCH) && __ARM_ARCH >= 6) || (defined(_M_ARM) && _M_ARM >= 6) #elif (defined(__arm__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7) || (defined(_M_ARM) && _M_ARM >= 7) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__)
/* ARM */ /* ARM */
#if defined(_MSC_VER) #if defined(_MSC_VER)
/* Apparently there is a __yield() intrinsic that's compatible with ARM, but I cannot find documentation for it nor can I find where it's declared. */ /* Apparently there is a __yield() intrinsic that's compatible with ARM, but I cannot find documentation for it nor can I find where it's declared. */
__yield(); __yield();
#else #else
__asm__ __volatile__ ("yield"); __asm__ __volatile__ ("yield"); /* ARMv6K/ARMv6T2 and above. */
#endif #endif
#else #else
/* Unknown or unsupported architecture. No-op. */ /* Unknown or unsupported architecture. No-op. */
@@ -61968,6 +61968,7 @@ REVISION HISTORY
================ ================
v0.10.14 - TBD v0.10.14 - TBD
- Fix compilation errors on Android. - Fix compilation errors on Android.
- Fix compilation errors with -march=armv6.
- Updates to the documentation. - Updates to the documentation.
v0.10.13 - 2020-07-11 v0.10.13 - 2020-07-11