openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1560334 - /openoffice/trunk/main/sal/inc/sal/mathconf.h
Date Wed, 22 Jan 2014 12:31:43 GMT
Author: hdu
Date: Wed Jan 22 12:31:43 2014
New Revision: 1560334

URL: http://svn.apache.org/r1560334
Log:
#i122208# the std::isfinite() workaround is only needed for GCC

and not for Clang (even if it quite compatible with GCC).
Also clang doesn't support GCC's __builtin_isfinite() function.

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=1560334&r1=1560333&r2=1560334&view=diff
==============================================================================
--- openoffice/trunk/main/sal/inc/sal/mathconf.h (original)
+++ openoffice/trunk/main/sal/inc/sal/mathconf.h Wed Jan 22 12:31:43 2014
@@ -55,7 +55,7 @@ extern "C" {
 
 
 /* SAL_MATH_FINITE(d): test double d on INFINITY, NaN et al. */
-#if defined(__GNUC__) // workaround gcc bug 14608
+#if defined(__GNUC__) && !defined(__clang__) // workaround gcc bug 14608
 	#if (__GNUC_MINOR__ >= 3) // gcc>=4.3 has a builtin
 		#define SAL_MATH_FINITE(d) __builtin_isfinite(d)
 	#else



Mime
View raw message