diff options
| author | Paul Eggert | 2023-02-04 14:45:11 -0800 |
|---|---|---|
| committer | Paul Eggert | 2023-02-04 15:14:16 -0800 |
| commit | 04d97e76a96854a9a9f4778cb1202a87537731de (patch) | |
| tree | 9c70da51ec099c2c1c0ca95dbace29190e563f8a /lib/time.in.h | |
| parent | 7e1c7db1cb5a33a66115bb767224bdc79a257266 (diff) | |
| download | emacs-04d97e76a96854a9a9f4778cb1202a87537731de.tar.gz emacs-04d97e76a96854a9a9f4778cb1202a87537731de.zip | |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/time.in.h')
| -rw-r--r-- | lib/time.in.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/time.in.h b/lib/time.in.h index 50c9b30b6b3..87cda21413b 100644 --- a/lib/time.in.h +++ b/lib/time.in.h | |||
| @@ -112,12 +112,24 @@ struct __time_t_must_be_integral { | |||
| 112 | /* Set *TS to the current time, and return BASE. | 112 | /* Set *TS to the current time, and return BASE. |
| 113 | Upon failure, return 0. */ | 113 | Upon failure, return 0. */ |
| 114 | # if @GNULIB_TIMESPEC_GET@ | 114 | # if @GNULIB_TIMESPEC_GET@ |
| 115 | # if ! @HAVE_TIMESPEC_GET@ | 115 | # if @REPLACE_TIMESPEC_GET@ |
| 116 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 117 | # undef timespec_get | ||
| 118 | # define timespec_get rpl_timespec_get | ||
| 119 | # endif | ||
| 120 | _GL_FUNCDECL_RPL (timespec_get, int, (struct timespec *ts, int base) | ||
| 121 | _GL_ARG_NONNULL ((1))); | ||
| 122 | _GL_CXXALIAS_RPL (timespec_get, int, (struct timespec *ts, int base)); | ||
| 123 | # else | ||
| 124 | # if !@HAVE_TIMESPEC_GET@ | ||
| 116 | _GL_FUNCDECL_SYS (timespec_get, int, (struct timespec *ts, int base) | 125 | _GL_FUNCDECL_SYS (timespec_get, int, (struct timespec *ts, int base) |
| 117 | _GL_ARG_NONNULL ((1))); | 126 | _GL_ARG_NONNULL ((1))); |
| 118 | # endif | 127 | # endif |
| 119 | _GL_CXXALIAS_SYS (timespec_get, int, (struct timespec *ts, int base)); | 128 | _GL_CXXALIAS_SYS (timespec_get, int, (struct timespec *ts, int base)); |
| 129 | # endif | ||
| 130 | # if __GLIBC__ >= 2 | ||
| 120 | _GL_CXXALIASWARN (timespec_get); | 131 | _GL_CXXALIASWARN (timespec_get); |
| 132 | # endif | ||
| 121 | # endif | 133 | # endif |
| 122 | 134 | ||
| 123 | /* Set *TS to the current time resolution, and return BASE. | 135 | /* Set *TS to the current time resolution, and return BASE. |
| @@ -423,7 +435,9 @@ _GL_FUNCDECL_SYS (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); | |||
| 423 | # endif | 435 | # endif |
| 424 | _GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); | 436 | _GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); |
| 425 | # endif | 437 | # endif |
| 438 | # if __GLIBC__ >= 2 | ||
| 426 | _GL_CXXALIASWARN (timegm); | 439 | _GL_CXXALIASWARN (timegm); |
| 440 | # endif | ||
| 427 | # endif | 441 | # endif |
| 428 | 442 | ||
| 429 | /* Encourage applications to avoid unsafe functions that can overrun | 443 | /* Encourage applications to avoid unsafe functions that can overrun |