summaryrefslogtreecommitdiffstats
path: root/comms/spandsp/files/patch-src-spandsp-dc_restore.h
blob: d2f63ad0d8e46664827c95f7f4f3a6f7e6b65f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
OpenPOWER on IntegriCloud