diff options
Diffstat (limited to 'main/freeswitch/0001-mod_avmd-use-posix-isinf.patch')
-rw-r--r-- | main/freeswitch/0001-mod_avmd-use-posix-isinf.patch | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch b/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch index 66b824f55d..7cc1d898c8 100644 --- a/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch +++ b/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch @@ -1,38 +1,17 @@ -From 3a0c554bee54fdcaa9a51616175e55f0b3824e39 Mon Sep 17 00:00:00 2001 -From: Natanael Copa <ncopa@alpinelinux.org> -Date: Tue, 26 Jul 2016 15:14:15 +0000 -Subject: [PATCH] mod_avmd: use posix isinf - ---- - src/mod/applications/mod_avmd/avmd_desa2_tweaked.c | 8 +------- - 1 file changed, 1 insertion(+), 7 deletions(-) - diff --git a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c -index 8eae175..57c1206 100644 +index 6bf0b41..7ef31f7 100644 --- a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c +++ b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c -@@ -4,12 +4,6 @@ - #include <stdio.h> - #ifdef WIN32 - #include <float.h> --#define ISNAN(x) (!!(_isnan(x))) --#define ISINF(x) (isinf(x)) --#else --int __isnan(double); --#define ISNAN(x) (__isnan(x)) --#define ISINF(x) (__isinf(x)) +@@ -16,9 +16,9 @@ + #define ISNAN(x) (!!(_isnan(x))) + #define ISINF(x) (isinf(x)) + #else +- int __isnan(double); +- #define ISNAN(x) (__isnan(x)) +- #define ISINF(x) (__isinf(x)) ++ #include <math.h> ++ #define ISNAN(x) (isnan(x)) ++ #define ISINF(x) (isinf(x)) #endif - #include "avmd_buffer.h" - #include "avmd_desa2_tweaked.h" -@@ -51,7 +45,7 @@ avmd_desa2_tweaked(circ_buffer_t *b, size_t i) - we do simplified, modified for speed version : */ - result = n/d; -- if (ISINF(result)) { -+ if (isinf(result)) { - if (n < 0.0) - return -10.0; - else --- -2.9.1 - + #include "avmd_buffer.h" |