aboutsummaryrefslogtreecommitdiffstats
path: root/comms/spandsp-devel/files/patch-src-spandsp-dc_restore.h
blob: dec6fcf8e048273310c1d117a93d59d58ff613d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

$FreeBSD$

--- 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.