This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[patch] scanf and no_longlong
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: newlib at sources dot redhat dot com
- Date: Mon, 16 Aug 2004 16:39:24 +0100
- Subject: [patch] scanf and no_longlong
- Organization: Codesourcery LLC
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.
*/