summaryrefslogtreecommitdiff
path: root/comms/spandsp/files/patch-src-spandsp-dc_restore.h
diff options
context:
space:
mode:
Diffstat (limited to 'comms/spandsp/files/patch-src-spandsp-dc_restore.h')
-rw-r--r--comms/spandsp/files/patch-src-spandsp-dc_restore.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/comms/spandsp/files/patch-src-spandsp-dc_restore.h b/comms/spandsp/files/patch-src-spandsp-dc_restore.h
new file mode 100644
index 000000000000..d2f63ad0d8e4
--- /dev/null
+++ b/comms/spandsp/files/patch-src-spandsp-dc_restore.h
@@ -0,0 +1,14 @@
+--- src/spandsp/dc_restore.h.orig Tue Jan 18 15:05:48 2005
++++ src/spandsp/dc_restore.h Thu Jun 30 22:35:33 2005
+@@ -85,6 +85,11 @@
+ }
+ /*- End of function --------------------------------------------------------*/
+
++#ifndef INT16_MAX
++#define INT16_MAX 0x7fff
++#define INT16_MIN (-0x7fff-1)
++#endif
++
+ static inline int16_t saturate(int32_t amp)
+ {
+ if (amp > INT16_MAX)