You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/05/08 20:29:03 UTC

svn commit: r1480395 - /openoffice/branches/rejuvenate01/main/sal/inc/sal/mathconf.h

Author: hdu
Date: Wed May  8 18:29:03 2013
New Revision: 1480395

URL: http://svn.apache.org/r1480395
Log:
#i122208# use std::isfinite() if available

the isfinite() method is blessed by the C++ standard and is
to be prefered over the older platform specific facilities

Modified:
    openoffice/branches/rejuvenate01/main/sal/inc/sal/mathconf.h

Modified: openoffice/branches/rejuvenate01/main/sal/inc/sal/mathconf.h
URL: http://svn.apache.org/viewvc/openoffice/branches/rejuvenate01/main/sal/inc/sal/mathconf.h?rev=1480395&r1=1480394&r2=1480395&view=diff
==============================================================================
--- openoffice/branches/rejuvenate01/main/sal/inc/sal/mathconf.h (original)
+++ openoffice/branches/rejuvenate01/main/sal/inc/sal/mathconf.h Wed May  8 18:29:03 2013
@@ -54,7 +54,9 @@ extern "C" {
 
 
 /* SAL_MATH_FINITE(d): test double d on INFINITY, NaN et al. */
-#if defined( WNT)
+#ifdef __STDC__
+    #define SAL_MATH_FINITE(d) isfinite(d)
+#elif defined( WNT)
 #define SAL_MATH_FINITE(d) _finite(d)
 #elif defined OS2
 #define SAL_MATH_FINITE(d) finite(d)