From ad8e1035c3feb1650640c2cfc995c1f5f917bbc7 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 12 Mar 2009 16:51:53 +0000 Subject: honour NO_LONG_DOUBLE_MATH This fixes compilation errors on hosts that turn off long double support for C99 like powerpc32. Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer --- libm/nan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libm/nan.c') diff --git a/libm/nan.c b/libm/nan.c index ec221ea71..eee3b1cc4 100644 --- a/libm/nan.c +++ b/libm/nan.c @@ -45,7 +45,7 @@ float nanf (const char *tagp) } libm_hidden_def(nanf) -#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ +#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && !defined __NO_LONG_DOUBLE_MATH libm_hidden_proto(nanl) long double nanl (const char *tagp) { -- cgit v1.2.3