OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | --- a/configure.ac |
2 | +++ b/configure.ac |
||
3 | @@ -43,12 +43,6 @@ |
||
4 | AC_FUNC_MALLOC |
||
5 | AC_FUNC_REALLOC |
||
6 | AC_CHECK_FUNCS(strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale) |
||
7 | -AC_CHECK_DECLS([INFINITY], [], [], [[#include <math.h>]]) |
||
8 | -AC_CHECK_DECLS([nan], [], [], [[#include <math.h>]]) |
||
9 | -AC_CHECK_DECLS([isnan], [], [], [[#include <math.h>]]) |
||
10 | -AC_CHECK_DECLS([isinf], [], [], [[#include <math.h>]]) |
||
11 | -AC_CHECK_DECLS([_isnan], [], [], [[#include <float.h>]]) |
||
12 | -AC_CHECK_DECLS([_finite], [], [], [[#include <float.h>]]) |
||
13 | |||
14 | #check if .section.gnu.warning accepts long strings (for __warn_references) |
||
15 | AC_LANG_PUSH([C]) |
||
16 | --- a/math_compat.h |
||
17 | +++ b/math_compat.h |
||
18 | @@ -1,28 +1,9 @@ |
||
19 | #ifndef __math_compat_h |
||
20 | #define __math_compat_h |
||
21 | |||
22 | -/* Define isnan and isinf on Windows/MSVC */ |
||
23 | - |
||
24 | -#ifndef HAVE_DECL_ISNAN |
||
25 | -# ifdef HAVE_DECL__ISNAN |
||
26 | -#include <float.h> |
||
27 | -#define isnan(x) _isnan(x) |
||
28 | -# endif |
||
29 | -#endif |
||
30 | - |
||
31 | -#ifndef HAVE_DECL_ISINF |
||
32 | -# ifdef HAVE_DECL__FINITE |
||
33 | -#include <float.h> |
||
34 | -#define isinf(x) (!_finite(x)) |
||
35 | -# endif |
||
36 | -#endif |
||
37 | - |
||
38 | -#ifndef HAVE_DECL_NAN |
||
39 | -#error This platform does not have nan() |
||
40 | -#endif |
||
41 | - |
||
42 | -#ifndef HAVE_DECL_INFINITY |
||
43 | -#error This platform does not have INFINITY |
||
44 | -#endif |
||
45 | +#undef isnan |
||
46 | +#define isnan(x) __builtin_isnan(x) |
||
47 | +#undef isinf |
||
48 | +#define isinf(x) __builtin_isinf(x) |
||
49 | |||
50 | #endif |