diff options
| author | Paul Eggert | 2013-12-17 12:43:43 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-12-17 12:43:43 -0800 |
| commit | e9ad5665ede9f7599b7b26a7e478fd3e56ddf36e (patch) | |
| tree | ce45512be929919b0c1e0c34bfb6dcb313c645aa /lib/time.in.h | |
| parent | 2d6b6005bcf3cc4ece90c0d19a645ca3ae1940ea (diff) | |
| download | emacs-e9ad5665ede9f7599b7b26a7e478fd3e56ddf36e.tar.gz emacs-e9ad5665ede9f7599b7b26a7e478fd3e56ddf36e.zip | |
Merge from gnulib, incorporating:
2013-12-17 gettimeofday: port recent C++ fix to Emacs
2013-12-17 gettimeofday: fix C++ crosscompilation
2013-12-17 qacl: port to Windows better
* lib/file-has-acl.c, lib/time.in.h, m4/gettimeofday.m4, m4/time_h.m4:
Update from gnulib.
* lib/gnulib.mk: Regenerate.
Diffstat (limited to 'lib/time.in.h')
| -rw-r--r-- | lib/time.in.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/time.in.h b/lib/time.in.h index 8ced7947445..d4c99061464 100644 --- a/lib/time.in.h +++ b/lib/time.in.h | |||
| @@ -187,6 +187,39 @@ _GL_CXXALIASWARN (gmtime_r); | |||
| 187 | # endif | 187 | # endif |
| 188 | # endif | 188 | # endif |
| 189 | 189 | ||
| 190 | /* Convert TIMER to RESULT, assuming local time and UTC respectively. See | ||
| 191 | <http://www.opengroup.org/susv3xsh/localtime.html> and | ||
| 192 | <http://www.opengroup.org/susv3xsh/gmtime.html>. */ | ||
| 193 | # if @GNULIB_GETTIMEOFDAY@ | ||
| 194 | # if @REPLACE_LOCALTIME@ | ||
| 195 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 196 | # undef localtime | ||
| 197 | # define localtime rpl_localtime | ||
| 198 | # endif | ||
| 199 | _GL_FUNCDECL_RPL (localtime, struct tm *, (time_t const *__timer) | ||
| 200 | _GL_ARG_NONNULL ((1))); | ||
| 201 | _GL_CXXALIAS_RPL (localtime, struct tm *, (time_t const *__timer)); | ||
| 202 | # else | ||
| 203 | _GL_CXXALIAS_SYS (localtime, struct tm *, (time_t const *__timer)); | ||
| 204 | # endif | ||
| 205 | _GL_CXXALIASWARN (localtime); | ||
| 206 | # endif | ||
| 207 | |||
| 208 | # if @GNULIB_GETTIMEOFDAY@ | ||
| 209 | # if @REPLACE_GMTIME@ | ||
| 210 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 211 | # undef gmtime | ||
| 212 | # define gmtime rpl_gmtime | ||
| 213 | # endif | ||
| 214 | _GL_FUNCDECL_RPL (gmtime, struct tm *, (time_t const *__timer) | ||
| 215 | _GL_ARG_NONNULL ((1))); | ||
| 216 | _GL_CXXALIAS_RPL (gmtime, struct tm *, (time_t const *__timer)); | ||
| 217 | # else | ||
| 218 | _GL_CXXALIAS_SYS (gmtime, struct tm *, (time_t const *__timer)); | ||
| 219 | # endif | ||
| 220 | _GL_CXXALIASWARN (gmtime); | ||
| 221 | # endif | ||
| 222 | |||
| 190 | /* Parse BUF as a time stamp, assuming FORMAT specifies its layout, and store | 223 | /* Parse BUF as a time stamp, assuming FORMAT specifies its layout, and store |
| 191 | the resulting broken-down time into TM. See | 224 | the resulting broken-down time into TM. See |
| 192 | <http://www.opengroup.org/susv3xsh/strptime.html>. */ | 225 | <http://www.opengroup.org/susv3xsh/strptime.html>. */ |