aboutsummaryrefslogtreecommitdiffstats
path: root/lib/time.in.h
diff options
context:
space:
mode:
authorPaul Eggert2023-02-04 14:45:11 -0800
committerPaul Eggert2023-02-04 15:14:16 -0800
commit04d97e76a96854a9a9f4778cb1202a87537731de (patch)
tree9c70da51ec099c2c1c0ca95dbace29190e563f8a /lib/time.in.h
parent7e1c7db1cb5a33a66115bb767224bdc79a257266 (diff)
downloademacs-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.h18
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