diff options
author | Roland McGrath <roland@gnu.org> | 1995-03-09 10:00:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-03-09 10:00:12 +0000 |
commit | 6c2f050742cfb5b3ff6ee96b106409f541eb53bc (patch) | |
tree | f7296a81b8d5524dddfa0aa1cc24342d8ef9ac24 /time/localtime.c | |
parent | 286351153566acc7dcc82834d90e0b8d87dff8be (diff) | |
download | glibc-6c2f050742cfb5b3ff6ee96b106409f541eb53bc.tar glibc-6c2f050742cfb5b3ff6ee96b106409f541eb53bc.tar.gz glibc-6c2f050742cfb5b3ff6ee96b106409f541eb53bc.tar.bz2 glibc-6c2f050742cfb5b3ff6ee96b106409f541eb53bc.zip |
Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob/configure.bat: Fixes from DJ.
* time/backward, time/europe, time/northamerica, time/pacificnew,
time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
time/ialloc.c: Code and data updated from ADO's 95b.
* time/emkdir.c: File removed.
* time/Makefile (distribute, extra-objs, zic): Omit it.
* time/localtime.c: Deansideclized. Never #define __tzname et al
to non-__ names.
* locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
instead of short int *.
* ctype/ctype-info.c: Likewise.
* ctype/ctype.h: Likewise.
* locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
of EB and EL versions.
Diffstat (limited to 'time/localtime.c')
-rw-r--r-- | time/localtime.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/time/localtime.c b/time/localtime.c index a729b974a6..5743347641 100644 --- a/time/localtime.c +++ b/time/localtime.c @@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <ansidecl.h> #include <stddef.h> #include <ctype.h> #include <stdio.h> @@ -25,20 +24,15 @@ Cambridge, MA 02139, USA. */ #include <time.h> -#ifndef HAVE_GNU_LD -#define __tzname tzname -#define __daylight daylight -#define __timezone timezone -#endif - /* Return the `struct tm' representation of *TIMER in the local timezone. */ struct tm * -DEFUN(localtime, (timer), CONST time_t *timer) +localtime (timer) + const time_t *timer; { extern int __use_tzfile; - extern int EXFUN(__tz_compute, (time_t timer, struct tm *tp)); - extern int EXFUN(__tzfile_compute, (time_t timer, - long int *leap_correct, int *leap_hit)); + extern int __tz_compute __P ((time_t timer, struct tm *tp)); + extern int __tzfile_compute __P ((time_t timer, + long int *leap_correct, int *leap_hit)); register struct tm *tp; long int leap_correction; int leap_extra_secs; |