You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by js...@apache.org on 2013/05/22 14:39:38 UTC

svn commit: r1485191 - /openoffice/trunk/main/sal/inc/sal/mathconf.h

Author: jsc
Date: Wed May 22 12:39:38 2013
New Revision: 1485191

URL: http://svn.apache.org/r1485191
Log:
fix isfinite error for gcc on MacOS

Modified:
    openoffice/trunk/main/sal/inc/sal/mathconf.h

Modified: openoffice/trunk/main/sal/inc/sal/mathconf.h
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/inc/sal/mathconf.h?rev=1485191&r1=1485190&r2=1485191&view=diff
==============================================================================
--- openoffice/trunk/main/sal/inc/sal/mathconf.h (original)
+++ openoffice/trunk/main/sal/inc/sal/mathconf.h Wed May 22 12:39:38 2013
@@ -56,7 +56,11 @@ extern "C" {
 
 /* SAL_MATH_FINITE(d): test double d on INFINITY, NaN et al. */
 #if defined(__GNUC__)
-	#define SAL_MATH_FINITE(d) __builtin_isfinite(d) // gcc bug 14608
+#if defined(MACOSX)
+    #define SAL_MATH_FINITE(d) finite(d)
+#else
+    #define SAL_MATH_FINITE(d) __builtin_isfinite(d) // gcc bug 14608
+#endif
 #elif defined(__STDC__)
 	// isfinite() should be available in math.h according to C99,C++99,SUSv3,etc.
 	// unless GCC bug 14608 hits us where cmath undefines isfinite as macro