shithub: sox

Download patch

ref: 1571c87c9519923b30d16c92f17515228c983924
parent: 266f197cddf52fab1fdb8336498026cca0c5de5a
author: Mans Rullgard <mans@mansr.com>
date: Fri Aug 21 12:00:01 EDT 2020

use cdecl attribute only on i386

The cdecl attribute is meaningful only on i386, and some compilers
warn if it is used elsewhere.  Guard it with the appropriate ifdef.

--- a/src/sox.h
+++ b/src/sox.h
@@ -57,7 +57,7 @@
 Attribute required on all functions exported by libSoX and on all function
 pointer types used by the libSoX API.
 */
-#ifdef __GNUC__
+#if defined __GNUC__ && defined __i386__
 #define LSX_API  __attribute__ ((cdecl)) /* libSoX function */
 #elif _MSC_VER
 #define LSX_API  __cdecl /* libSoX function */