[Asterisk-cvs] asterisk plc.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Sat Mar 19 20:58:51 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv15544

Modified Files:
	plc.c 
Log Message:
Fix PLC for BSD (bug #2532)


Index: plc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/plc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- plc.c	17 Mar 2005 22:38:10 -0000	1.2
+++ plc.c	20 Mar 2005 02:53:48 -0000	1.3
@@ -33,7 +33,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
-#include <stdint.h>
 #include <limits.h>
 
 #include <asterisk/plc.h>
@@ -45,6 +44,11 @@
 #define TRUE (!FALSE)
 #endif
 
+#if !defined(INT16_MAX)
+#define INT16_MAX	(32767)
+#define INT16_MIN	(-32767-1)
+#endif
+
 /* We do a straight line fade to zero volume in 50ms when we are filling in for missing data. */
 #define ATTENUATION_INCREMENT       0.0025                              /* Attenuation per sample */
 




More information about the svn-commits mailing list