| 1 | --- a/include/math.h |
| 2 | +++ b/include/math.h |
| 3 | @@ -198,7 +198,7 @@ libm_hidden_proto(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 | @@ -318,6 +318,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 |
| 24 | |