diff mbox

[committed] (re)define NAN in quadmath (PR bootstrap/47827)

Message ID 20110220221337.GT30899@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Feb. 20, 2011, 10:13 p.m. UTC
Hi!

Apparently Solaris either doesn't have C99-ish math.h or at least doesn't
have it by default nor with AC_USE_SYSTEM_EXTENSIONS macros.
Anyway, we know we are compiled by GCC (which we heavily rely on with
__float128 etc.), so we can provide our own definition.

Committed to trunk.

2011-02-20  Jakub Jelinek  <jakub@redhat.com>

	PR bootstrap/47827
	* printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf ("").


	Jakub
diff mbox

Patch

--- libquadmath/printf/quadmath-printf.h.jj	2011-02-17 18:33:32.000000000 +0100
+++ libquadmath/printf/quadmath-printf.h	2011-02-20 22:52:08.754670648 +0100
@@ -181,3 +181,6 @@  __quadmath_do_putc (struct __quadmath_pr
 
 #undef _itoa
 #define _itoa __quadmath_itoa
+
+#undef NAN
+#define NAN __builtin_nanf ("")