diff options
author | Mark Spencer <markster@digium.com> | 2005-03-20 02:53:48 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-03-20 02:53:48 +0000 |
commit | 6d639701477c97156e8150b7d26e3a9ab38ea873 (patch) | |
tree | f3e21422a141f1c61cb344781bcdaf7513bc7394 /plc.c | |
parent | 5c3c5fb65cf9f885b3ccf0b81453ba7a3dc59e15 (diff) |
Fix PLC for BSD (bug #2532)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'plc.c')
-rwxr-xr-x | plc.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 */ |