aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch
blob: afbf3696f8cbc0ba2d963fc8a383072bdc7e2056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
index 6bf0b41..7ef31f7 100644
--- a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
+++ b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
@@ -16,10 +16,9 @@
     #define ISNAN(x) (!!(_isnan(x)))
     #define ISINF(x) (isinf(x))
 #else
-    int __isnan(double);
-	int __isinf(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"