shithub: sox

Download patch

ref: ed3e2fba0a2fc0810bd4b731c1fe8c752f860200
parent: b64d8dc0823fba431eca1474fdc8c54bb4f14eb9
author: jching <jching>
date: Mon Aug 29 16:39:40 EDT 2005

Avoid duplicate symbols on Win32 platform.

--- a/src/noisered.h
+++ b/src/noisered.h
@@ -20,7 +20,6 @@
 #define WINDOWSIZE 2048
 #define FREQCOUNT (WINDOWSIZE/2+1)
 
-static int min(int a, int b) {
-    if (a < b) return a;
-    else       return b;
-}
+#ifndef min
+#define min(s1,s2) ((s1)<(s2)?(s1):(s2))
+#endif