2000-12-06 Jeff Johnston <jjohnstn@redhat.com>

* libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
This commit is contained in:
Jeff Johnston 2000-12-07 00:17:20 +00:00
parent 6bdac416e9
commit 9f6e8f1b7f
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c: Fix typo for _NO_LONGDBL macro.
2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/Makefile.am: Added ldtoa.c to list of sources.

View File

@ -845,11 +845,11 @@ __svfscanf (fp, fmt0, ap)
exp_start = buf + sizeof (buf) - MAX_LONG_LEN - 1;
sprintf (exp_start, "e%ld", new_exp);
}
#ifdef _NO_LONG_DBL
#ifdef _NO_LONGDBL
res = atof (buf);
#else /* !_NO_LONG_DBL */
#else /* !_NO_LONGDBL */
res = _strtold (buf, NULL);
#endif /* !_NO_LONG_DBL */
#endif /* !_NO_LONGDBL */
if (flags & LONG)
{
dp = va_arg (ap, double *);