mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-21 23:21:47 +00:00
HAVE_SETLOCALE goes
SCCS-file: date.c SCCS-SID: 7.27
This commit is contained in:
committed by
Paul Eggert
parent
aba011ece0
commit
23ac75d5a0
4
date.c
4
date.c
@ -38,9 +38,7 @@ static char sccsid[] = "@(#)date.c 4.23 (Berkeley) 9/20/88";
|
||||
#if HAVE_ADJTIME || HAVE_SETTIMEOFDAY
|
||||
#include "sys/time.h" /* for struct timeval, struct timezone */
|
||||
#endif /* HAVE_ADJTIME || HAVE_SETTIMEOFDAY */
|
||||
#if HAVE_SETLOCALE
|
||||
#include "locale.h"
|
||||
#endif /* HAVE_SETLOCALE */
|
||||
#include "utmp.h" /* for OLD_TIME (or its absence) */
|
||||
|
||||
/*
|
||||
@ -500,9 +498,7 @@ const char * const format;
|
||||
|
||||
(void) time(&now);
|
||||
tm = *localtime(&now);
|
||||
#if HAVE_SETLOCALE
|
||||
setlocale(LC_TIME, "");
|
||||
#endif /* HAVE_SETLOCALE */
|
||||
timeout(stdout, format ? format : "%+", &tm);
|
||||
(void) putchar('\n');
|
||||
(void) fflush(stdout);
|
||||
|
||||
Reference in New Issue
Block a user