shithub: sox

Download patch

ref: 55f7d6f8841f97d21f630a5e97b774ac35b4bd05
parent: ee043366b6b497dcda6729100f39a88d7ee8e35d
author: robs <robs>
date: Tue Jul 1 06:02:26 EDT 2008

fix clash with unistd.h

--- a/src/amr.h
+++ b/src/amr.h
@@ -71,7 +71,7 @@
   return SOX_SUCCESS;
 }
 
-static sox_size_t read(sox_format_t * ft, sox_sample_t * buf, sox_size_t len)
+static sox_size_t read_samples(sox_format_t * ft, sox_sample_t * buf, sox_size_t len)
 {
   priv_t * p = (priv_t *)ft->priv;
   sox_size_t done;
@@ -111,7 +111,7 @@
   return SOX_SUCCESS;
 }
 
-static sox_size_t write(sox_format_t * ft, const sox_sample_t * buf, sox_size_t len)
+static sox_size_t write_samples(sox_format_t * ft, const sox_sample_t * buf, sox_size_t len)
 {
   priv_t * p = (priv_t *)ft->priv;
   sox_size_t done;
@@ -153,8 +153,8 @@
     SOX_LIB_VERSION_CODE,
     "3GPP Adaptive Multi Rate lossy speech compressor",
     names, SOX_FILE_MONO,
-    startread, read, stopread,
-    startwrite, write, stopwrite,
+    startread, read_samples, stopread,
+    startwrite, write_samples, stopwrite,
     NULL, write_encodings, write_rates, sizeof(priv_t)
   };
   return &handler;