diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/sal/mathconf.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sal/inc/sal/mathconf.h b/sal/inc/sal/mathconf.h index 5a49e0b999bb..1c12ec1a277a 100644 --- a/sal/inc/sal/mathconf.h +++ b/sal/inc/sal/mathconf.h @@ -41,6 +41,14 @@ #include <cmath> #endif +#if defined(IOS) +#if defined(__cplusplus) +#include <cmath> +#else +#include <math.h> +#endif +#endif + #if defined __cplusplus extern "C" { #endif /* __cplusplus */ @@ -65,7 +73,9 @@ extern "C" { /* SAL_MATH_FINITE(d): test double d on INFINITY, NaN et al. */ #if !defined SOLARIS && !defined ANDROID \ && defined(__cplusplus) \ - && ( defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L ) + && ( defined(__GXX_EXPERIMENTAL_CXX0X__) \ + || __cplusplus >= 201103L \ + || defined(IOS) ) #define SAL_MATH_FINITE(d) std::isfinite(d) #elif defined( IOS ) #define SAL_MATH_FINITE(d) isfinite(d) |