shithub: mp3dec

Download patch

ref: f4b44f8ef8110e22ed95e5f7d6852534a03e5e50
parent: d86f4cbc9742c45b94cfb3e6cd86b951eeea7e5c
author: Darryl T. Agostinelli <dagostinelli@gmail.com>
date: Sun Sep 13 12:28:51 EDT 2020

minimp3.h: satisfy stricter compiler checks

--- a/minimp3.h
+++ b/minimp3.h
@@ -136,7 +136,7 @@
 #endif /* defined(__PIC__)*/
 }
 #endif /* defined(_MSC_VER) || defined(MINIMP3_ONLY_SIMD) */
-static int have_simd()
+static int have_simd(void)
 {
 #ifdef MINIMP3_ONLY_SIMD
     return 1;
@@ -191,7 +191,11 @@
 #define HAVE_SIMD 0
 #endif /* !defined(MINIMP3_NO_SIMD) */
 
+#define HAVE_ARMV6 0
 #if defined(__ARM_ARCH) && (__ARM_ARCH >= 6) && !defined(__aarch64__)
+#ifdef HAVE_ARMV6
+    #undef HAVE_ARMV6
+#endif
 #define HAVE_ARMV6 1
 static __inline__ __attribute__((always_inline)) int32_t minimp3_clip_int16_arm(int32_t a)
 {