aboutsummaryrefslogtreecommitdiffstats
path: root/plc.c
diff options
context:
space:
mode:
Diffstat (limited to 'plc.c')
-rwxr-xr-xplc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plc.c b/plc.c
index d14a98f30..9b2228e7e 100755
--- a/plc.c
+++ b/plc.c
@@ -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 */