shithub: sox

Download patch

ref: 33837263e0f67be7cf1c64e49c04293acebc5f00
parent: fc6a9530e55dcd4509a5a231bc183f3c5af39d63
author: Ulrich Klauer <ulrich@chirlu.de>
date: Thu Apr 5 17:20:34 EDT 2012

Provide a fallback for UINT64_MAX

Define UINT64_MAX locally if stdint.h is not available, as is
apparently the case for Microsoft Visual C++ 2008. Needed for the pad
effect.

--- a/src/util.h
+++ b/src/util.h
@@ -46,6 +46,7 @@
   typedef sox_uint32_t uint32_t;
   typedef sox_int64_t  int64_t;
   typedef sox_uint64_t uint64_t;
+  #define UINT64_MAX ((uint64_t)-1)
 #endif
 
 /* Define the format specifier to use for int64_t values.