Fix compilation due to __nan defines

This commit is contained in:
Andreas Schwab 2011-10-22 13:49:49 +02:00
parent bc62c2fb15
commit ee2aafe08e
5 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2011-10-22 Andreas Schwab <schwab@linux-m68k.org>
* math/s_nan.c: Undef __nan.
* math/s_nanf.c: Undef __nanf.
* math/s_nanl.c: Undef __nanl.
* sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
"math_private.h".
2011-10-22 Ulrich Drepper <drepper@gmail.com>
* math/math_private.h: Define __nan, __nanf, __nanl.

View File

@ -25,6 +25,7 @@
#include <ieee754.h>
#undef __nan
double
__nan (const char *tagp)
{

View File

@ -25,6 +25,7 @@
#include <ieee754.h>
#undef __nanf
float
__nanf (const char *tagp)
{

View File

@ -25,6 +25,7 @@
#include <ieee754.h>
#undef __nanl
long double
__nanl (const char *tagp)
{

View File

@ -59,6 +59,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <math.h>
#include "math_private.h"
#include <math_ldbl_opt.h>