diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-05-24 03:25:43 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-05-24 03:25:50 +0300 |
commit | 302a098aa33873b4649818182213e508363b822b (patch) | |
tree | 76a7cba9a902f1cd78fe77738e822fe4b015dbf5 /sal | |
parent | 8bd41dad9f11c7334b8e5b10d9606158ef47ef19 (diff) |
Use isfinite() on iOS
We probably should use isfinite() on more platforms, at least other
BSD-based ones, instead of the allegedly deprecated finite()?
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/sal/mathconf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/inc/sal/mathconf.h b/sal/inc/sal/mathconf.h index eef4c8d6c2cc..f32b2d6c8d6c 100644 --- a/sal/inc/sal/mathconf.h +++ b/sal/inc/sal/mathconf.h @@ -61,6 +61,8 @@ extern "C" { /* SAL_MATH_FINITE(d): test double d on INFINITY, NaN et al. */ #if defined( WNT) #define SAL_MATH_FINITE(d) _finite(d) +#elif defined IOS +#define SAL_MATH_FINITE(d) isfinite(d) #elif defined LINUX || defined UNX #define SAL_MATH_FINITE(d) finite(d) #else /* WNT, LINUX, UNX */ |