shithub: sox

Download patch

ref: c94b05ceb57399f55ddd31c51748bb5bf2f7835c
parent: fc46b56f83d46e7795a89eaef548beac4778c5e1
author: robs <robs>
date: Fri Mar 14 03:29:18 EDT 2008

fix off_T size check on Mac

--- a/src/sox_i.h
+++ b/src/sox_i.h
@@ -104,7 +104,9 @@
 #define ftello ftell
 #define off_t long
 #endif
+#ifdef _FILE_OFFSET_BITS
 assert_static(sizeof(off_t) == _FILE_OFFSET_BITS >> 3, OFF_T_BUILD_PROBLEM);
+#endif
 
 /* Digitise one cycle of a wave and store it as
  * a table of samples of a specified data-type.
--- a/src/soxconfig.h.cmake
+++ b/src/soxconfig.h.cmake
@@ -36,4 +36,3 @@
 #cmakedefine HAVE_UNISTD_H            1
 #cmakedefine HAVE_VSNPRINTF           1
 #cmakedefine WORDS_BIGENDIAN          1
-#define _FILE_OFFSET_BITS 32