ref: 1967dddb9481532ad289cb4b20d3ccf3eb2be3be
parent: 74baf8c960c5758e38b61af51fe798f36ffe26de
author: Chris Bagwell <chris@cnpbagwell.com>
date: Thu Sep 29 17:02:07 EDT 2011
fix uint64 prototype issues This allows to compile on OSX again after uint64 changes.
--- a/src/crop.c
+++ b/src/crop.c
@@ -144,7 +144,7 @@
return &handler;
}
-uint64_t sox_crop_get_start(sox_effect_t * effp)
+sox_uint64_t sox_crop_get_start(sox_effect_t * effp)
{
return ((priv_t *)effp->priv)->pos[0].at;
}
--- a/src/formats.c
+++ b/src/formats.c
@@ -1008,7 +1008,7 @@
return result;
}
-int sox_seek(sox_format_t * ft, uint64_t offset, int whence)
+int sox_seek(sox_format_t * ft, sox_uint64_t offset, int whence)
{
/* FIXME: Implement SOX_SEEK_CUR and SOX_SEEK_END. */
if (whence != SOX_SEEK_SET)
--- a/src/trim.c
+++ b/src/trim.c
@@ -181,7 +181,7 @@
return (SOX_SUCCESS);
}
-uint64_t sox_trim_get_start(sox_effect_t * effp)
+sox_uint64_t sox_trim_get_start(sox_effect_t * effp)
{
priv_t * trim = (priv_t *)effp->priv;
return trim->start;
--- a/src/util.h
+++ b/src/util.h
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "soxconfig.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> /* For off_t not found in stdio.h */