This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] scanf and no_longlong


Hi,
I noticed that the NO_LONGLONG machinery in vfscanf.c was inside
a #if FLOATING_POINT, which is wrong.  this corrects it, ok?

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>

	* libc/stdio/vfscanf.c (_NO_LONGLONG): Move out of FLOATING_POINT
	#if.

Index: libc/stdio/vfscanf.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdio/vfscanf.c,v
retrieving revision 1.23
diff -c -3 -p -r1.23 vfscanf.c
*** libc/stdio/vfscanf.c	2 Jun 2004 19:22:14 -0000	1.23
--- libc/stdio/vfscanf.c	16 Aug 2004 15:36:16 -0000
*************** Supporting OS subroutines required:
*** 135,145 ****
  extern _LONG_DOUBLE _strtold _PARAMS((char *s, char **sptr));
  #endif
  
- #define _NO_LONGLONG
- #if defined _WANT_IO_LONG_LONG && defined __GNUC__
- # undef _NO_LONGLONG
- #endif
- 
  #include "floatio.h"
  
  #if ((MAXEXP+MAXFRACT+3) > MB_LEN_MAX)
--- 135,140 ----
*************** extern _LONG_DOUBLE _strtold _PARAMS((ch
*** 155,160 ****
--- 150,160 ----
  #define	BUF	40
  #endif
  
+ #define _NO_LONGLONG
+ #if defined _WANT_IO_LONG_LONG && defined __GNUC__
+ # undef _NO_LONGLONG
+ #endif
+ 
  /*
   * Flags used during conversion.
   */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]