170-math_finite.patch 640 B

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