diff options
| author | Paul Eggert | 2024-05-11 13:16:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2024-05-11 18:46:26 -0700 |
| commit | 7ae091d933b03d0a1e1e0b39a949c2811c4c3618 (patch) | |
| tree | 6c4f1fbbbc86621d3e4320a9bcceab901c1b6d68 /lib/stdlib.in.h | |
| parent | 2e13c2adbad4fc609f560926f6e536b25281f925 (diff) | |
| download | emacs-7ae091d933b03d0a1e1e0b39a949c2811c4c3618.tar.gz emacs-7ae091d933b03d0a1e1e0b39a949c2811c4c3618.zip | |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index b901d175aeb..e74e7c18d19 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -1591,6 +1591,38 @@ _GL_WARN_ON_USE (strtod, "strtod is unportable - " | |||
| 1591 | # endif | 1591 | # endif |
| 1592 | #endif | 1592 | #endif |
| 1593 | 1593 | ||
| 1594 | #if @GNULIB_STRTOF@ | ||
| 1595 | /* Parse a float from STRING, updating ENDP if appropriate. */ | ||
| 1596 | # if @REPLACE_STRTOF@ | ||
| 1597 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 1598 | # define strtof rpl_strtof | ||
| 1599 | # endif | ||
| 1600 | # define GNULIB_defined_strtof_function 1 | ||
| 1601 | _GL_FUNCDECL_RPL (strtof, float, | ||
| 1602 | (const char *restrict str, char **restrict endp) | ||
| 1603 | _GL_ARG_NONNULL ((1))); | ||
| 1604 | _GL_CXXALIAS_RPL (strtof, float, | ||
| 1605 | (const char *restrict str, char **restrict endp)); | ||
| 1606 | # else | ||
| 1607 | # if !@HAVE_STRTOF@ | ||
| 1608 | _GL_FUNCDECL_SYS (strtof, float, | ||
| 1609 | (const char *restrict str, char **restrict endp) | ||
| 1610 | _GL_ARG_NONNULL ((1))); | ||
| 1611 | # endif | ||
| 1612 | _GL_CXXALIAS_SYS (strtof, float, | ||
| 1613 | (const char *restrict str, char **restrict endp)); | ||
| 1614 | # endif | ||
| 1615 | # if __GLIBC__ >= 2 | ||
| 1616 | _GL_CXXALIASWARN (strtof); | ||
| 1617 | # endif | ||
| 1618 | #elif defined GNULIB_POSIXCHECK | ||
| 1619 | # undef strtof | ||
| 1620 | # if HAVE_RAW_DECL_STRTOF | ||
| 1621 | _GL_WARN_ON_USE (strtof, "strtof is unportable - " | ||
| 1622 | "use gnulib module strtof for portability"); | ||
| 1623 | # endif | ||
| 1624 | #endif | ||
| 1625 | |||
| 1594 | #if @GNULIB_STRTOLD@ | 1626 | #if @GNULIB_STRTOLD@ |
| 1595 | /* Parse a 'long double' from STRING, updating ENDP if appropriate. */ | 1627 | /* Parse a 'long double' from STRING, updating ENDP if appropriate. */ |
| 1596 | # if @REPLACE_STRTOLD@ | 1628 | # if @REPLACE_STRTOLD@ |