
$FreeBSD: ports/comms/spandsp/files/patch-src-spandsp-dc_restore.h,v 1.3 2006/07/20 20:34:59 sobomax Exp $

--- src/spandsp/dc_restore.h.orig
+++ src/spandsp/dc_restore.h
@@ -53,6 +53,11 @@
     clean_sample = sample - (dc_bias >> 15); 
 */
 
+#ifndef INT16_MAX
+#define INT16_MAX 0x7fff
+#define INT16_MIN (-0x7fff-1)
+#endif
+
 /*!
     Zero DC restoration descriptor. This defines the working state for a single
     instance of DC content filter.
