diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-04-18 11:33:58 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-04-18 11:33:58 +0300 |
commit | 97a9309556465557781fb95b2bc5a44f7b4520b9 (patch) | |
tree | d833c01701ab24492429351fd77b99ef5c83a2ae /src/s/ms-w32.h | |
parent | 6470c3c6a99ed0d1eae68bbbe1d0a3f6ca8b4983 (diff) | |
download | emacs-97a9309556465557781fb95b2bc5a44f7b4520b9.tar.gz |
Fix a bug in time functions when timezone is changed on Windows.
src/s/ms-w32.h (localtime): Redirect to sys_localtime.
src/w32.c: Include <time.h>.
(sys_localtime): New function.
Diffstat (limited to 'src/s/ms-w32.h')
-rw-r--r-- | src/s/ms-w32.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 2b0a60cfab9..b9e57687a09 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h @@ -236,6 +236,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define dup2 sys_dup2 #define fopen sys_fopen #define link sys_link +#define localtime sys_localtime #define mkdir sys_mkdir #undef mktemp #define mktemp sys_mktemp |