aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-03-13 09:55:59 -0700
committerPaul Eggert2015-03-13 09:58:38 -0700
commit2c59be9c67e50f70f0407794bfe79038ded58a72 (patch)
tree2dbd7604f83110ac3b018cb578b95534a85b8ea4 /src
parentb91eafe31a524b391d5cec079cf8f36c2f9d5f30 (diff)
downloademacs-2c59be9c67e50f70f0407794bfe79038ded58a72.tar.gz
emacs-2c59be9c67e50f70f0407794bfe79038ded58a72.zip
* editfns.c, systime.h (mktime_z) [!HAVE_TZALLOC]: Now static.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/editfns.c2
-rw-r--r--src/systime.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 517052590c3..0c32b74fdba 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12015-03-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 * editfns.c, systime.h (mktime_z) [!HAVE_TZALLOC]: Now static.
4
12015-03-12 Eli Zaretskii <eliz@gnu.org> 52015-03-12 Eli Zaretskii <eliz@gnu.org>
2 6
3 * w32font.c (font_supported_scripts): Add subranges for Latin 7 * w32font.c (font_supported_scripts): Add subranges for Latin
diff --git a/src/editfns.c b/src/editfns.c
index dbcb3160b27..7c146f13e14 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1411,7 +1411,7 @@ check_time_validity (int validity)
1411/* A substitute for mktime_z on platforms that lack it. It's not 1411/* A substitute for mktime_z on platforms that lack it. It's not
1412 thread-safe, but should be good enough for Emacs in typical use. */ 1412 thread-safe, but should be good enough for Emacs in typical use. */
1413#ifndef HAVE_TZALLOC 1413#ifndef HAVE_TZALLOC
1414time_t 1414static time_t
1415mktime_z (timezone_t tz, struct tm *tm) 1415mktime_z (timezone_t tz, struct tm *tm)
1416{ 1416{
1417 char *oldtz = getenv ("TZ"); 1417 char *oldtz = getenv ("TZ");
diff --git a/src/systime.h b/src/systime.h
index 4787c512aaa..744af17b640 100644
--- a/src/systime.h
+++ b/src/systime.h
@@ -118,8 +118,6 @@ extern struct timespec lisp_time_argument (Lisp_Object);
118typedef char const *timezone_t; 118typedef char const *timezone_t;
119INLINE timezone_t tzalloc (char const *name) { return name; } 119INLINE timezone_t tzalloc (char const *name) { return name; }
120INLINE void tzfree (timezone_t tz) { } 120INLINE void tzfree (timezone_t tz) { }
121/* Defined in editfns.c. */
122extern time_t mktime_z (timezone_t, struct tm *);
123#endif 121#endif
124 122
125INLINE_HEADER_END 123INLINE_HEADER_END