b0ae3337b9864b7a06693ed892fc342312a851d4
[openwrt/openwrt.git] / toolchain / uClibc / patches-0.9.33.2 / 170-math_finite.patch
1 --- a/include/math.h
2 +++ b/include/math.h
3 @@ -195,7 +195,7 @@ extern int signgam;
4
5
6 /* ISO C99 defines some generic macros which work on any data type. */
7 -#ifdef __USE_ISOC99
8 +#if defined(__USE_ISOC99) || defined(__USE_BSD)
9
10 /* Get the architecture specific values describing the floating-point
11 evaluation. The following symbols will get defined:
12 @@ -315,6 +315,11 @@ enum
13
14 #endif /* Use ISO C99. */
15
16 +/* BSD compat */
17 +#define finite(x) __finite(x)
18 +#define finitef(x) __finitef(x)
19 +#define finitel(x) __finitel(x)
20 +
21 #ifdef __USE_MISC
22 /* Support for various different standard error handling behaviors. */
23 typedef enum