summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-11-02 22:25:47 +0200
committerTor Lillqvist <tml@iki.fi>2012-11-02 22:47:57 +0200
commit19bce817279c7fd150af0422c224975e57ff9f41 (patch)
tree5236a61f53abdee3938789853f1fa408bacfdae5
parent9fdf86df4eb65a0cd2a178998daf751afc34805e (diff)
Try to use isfinite() for iOS
Change-Id: Ia333afbefa4c112f478d2619efbe032e70925417
-rw-r--r--sal/inc/sal/mathconf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/inc/sal/mathconf.h b/sal/inc/sal/mathconf.h
index f92d8b403123..5a49e0b999bb 100644
--- a/sal/inc/sal/mathconf.h
+++ b/sal/inc/sal/mathconf.h
@@ -67,6 +67,8 @@ extern "C" {
&& defined(__cplusplus) \
&& ( defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L )
#define SAL_MATH_FINITE(d) std::isfinite(d)
+#elif defined( IOS )
+#define SAL_MATH_FINITE(d) isfinite(d)
#elif defined( WNT)
#define SAL_MATH_FINITE(d) _finite(d)
#elif defined LINUX || defined UNX