RFA: Change prototype for nan() in mathconf.h
Nick Clifton
nickc@redhat.com
Fri Dec 19 11:15:00 GMT 2003
Hi Guys,
May I apply the following patch please ? It updates the prototype
for nan() in libstdc++-v3/libmath/mathconf.h so that it takes a
"const char *" argument, as specified in:
http://www.opengroup.org/onlinepubs/007904975/functions/nan.html
Cheers
Nick
2003-12-19 Nick Clifton <nickc@redhat.com>
* libmath/mathconf.h (NAN): Add argument.
(nan): Add a const char * argument to protoype.
Index: libstdc++-v3/libmath/mathconf.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libmath/mathconf.h,v
retrieving revision 1.8
diff -c -3 -p -r1.8 mathconf.h
*** libstdc++-v3/libmath/mathconf.h 16 Aug 2001 12:49:19 -0000 1.8
--- libstdc++-v3/libmath/mathconf.h 19 Dec 2003 10:48:20 -0000
*************** typedef int Int64_t __attribute ((mode (
*** 80,87 ****
#endif
#ifndef NAN
! # define NAN (nan())
! double nan (void);
#endif
#ifdef HAVE_IEEEFP_H
--- 80,87 ----
#endif
#ifndef NAN
! # define NAN (nan (""))
! double nan (const char *);
#endif
#ifdef HAVE_IEEEFP_H
More information about the Gcc-patches
mailing list