openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1480395 - /openoffice/branches/rejuvenate01/main/sal/inc/sal/mathconf.h
Date Wed, 08 May 2013 18:29:03 GMT
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)



Mime
View raw message