Mercurial > gnulib
annotate lib/fpending.h @ 40231:9b3c79fdfe0b
strtod: fix clash with strtold
Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
* lib/strtod.c (compute_minus_zero, minus_zero):
Simplify by remving the macro / external variable,
and having just a function. User changed. This avoids
the need for an external variable that might clash.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Mar 2019 16:40:29 -0700 |
parents | b06060465f09 |
children |
rev | line source |
---|---|
9183
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
1 /* Declare __fpending. |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
2 |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
19484
diff
changeset
|
3 Copyright (C) 2000, 2003, 2005-2006, 2009-2019 Free Software Foundation, |
12559
c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents:
12518
diff
changeset
|
4 Inc. |
9183
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
5 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9183
diff
changeset
|
6 This program is free software: you can redistribute it and/or modify |
9183
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
7 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9183
diff
changeset
|
8 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
9183
diff
changeset
|
9 (at your option) any later version. |
9183
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
10 |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
11 This program is distributed in the hope that it will be useful, |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
14 GNU General Public License for more details. |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
15 |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
16 You should have received a copy of the GNU General Public License |
19190 | 17 along with this program. If not, see <https://www.gnu.org/licenses/>. |
9183
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
18 |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
19 Written by Jim Meyering. */ |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
20 |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
21 #include <stddef.h> |
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
22 #include <stdio.h> |
17458
3efb2780c5ae
fpending: port to recent Cygwin change to stdio_ext.h
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
23 #if HAVE_STDIO_EXT_H |
3efb2780c5ae
fpending: port to recent Cygwin change to stdio_ext.h
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
24 # include <stdio_ext.h> |
3efb2780c5ae
fpending: port to recent Cygwin change to stdio_ext.h
Paul Eggert <eggert@cs.ucla.edu>
parents:
17249
diff
changeset
|
25 #endif |
9183
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
26 |
17537 | 27 #if !HAVE_DECL___FPENDING |
17518
0bec564dbf56
fpending, obstack, strerror-override: use pure+const function attrs
Jim Meyering <meyering@fb.com>
parents:
17458
diff
changeset
|
28 size_t __fpending (FILE *) _GL_ATTRIBUTE_PURE; |
9183
cc316ffcb4fc
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
29 #endif |