aboutsummaryrefslogtreecommitdiffstats
path: root/lib/localtime-buffer.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2019-04-27 18:33:39 +0900
committerYAMAMOTO Mitsuharu2019-04-27 18:33:39 +0900
commit886bedb36c7b959b7e6fc8ce8e0c04e144b0ae28 (patch)
treeb5770d9fc10a704ad8aeb3474c6940121252c770 /lib/localtime-buffer.c
parent015a6e1df2772bd43680df5cbeaffccf98a881da (diff)
parent8dc00b2f1e6523c634df3e24379afbe712a32b27 (diff)
downloademacs-886bedb36c7b959b7e6fc8ce8e0c04e144b0ae28.tar.gz
emacs-886bedb36c7b959b7e6fc8ce8e0c04e144b0ae28.zip
Merge branch 'master' into harfbuzz
Diffstat (limited to 'lib/localtime-buffer.c')
-rw-r--r--lib/localtime-buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/localtime-buffer.c b/lib/localtime-buffer.c
index df11f4321db..b65ea45af20 100644
--- a/lib/localtime-buffer.c
+++ b/lib/localtime-buffer.c
@@ -1,6 +1,6 @@
1/* Provide access to the last buffer returned by localtime() or gmtime(). 1/* Provide access to the last buffer returned by localtime() or gmtime().
2 2
3 Copyright (C) 2001-2003, 2005-2007, 2009-2018 Free Software Foundation, Inc. 3 Copyright (C) 2001-2003, 2005-2007, 2009-2019 Free Software Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -34,6 +34,7 @@ struct tm *localtime_buffer_addr = &tm_zero_buffer;
34 34
35struct tm * 35struct tm *
36rpl_localtime (time_t const *timep) 36rpl_localtime (time_t const *timep)
37#undef localtime
37{ 38{
38 struct tm *tm = localtime (timep); 39 struct tm *tm = localtime (timep);
39 40
@@ -46,6 +47,7 @@ rpl_localtime (time_t const *timep)
46/* Same as above, since gmtime and localtime use the same buffer. */ 47/* Same as above, since gmtime and localtime use the same buffer. */
47struct tm * 48struct tm *
48rpl_gmtime (time_t const *timep) 49rpl_gmtime (time_t const *timep)
50#undef gmtime
49{ 51{
50 struct tm *tm = gmtime (timep); 52 struct tm *tm = gmtime (timep);
51 53