comparison liboctave/strftime.c @ 3887:7da18459c08b

[project @ 2002-04-04 00:44:21 by jwe]
author jwe
date Thu, 04 Apr 2002 00:46:37 +0000
parents 6929a31e7624
children 4c8a2e4e0717
comparison
equal deleted inserted replaced
3886:96919c87953c 3887:7da18459c08b
27 # define HAVE_LIMITS_H 1 27 # define HAVE_LIMITS_H 1
28 # define HAVE_MBLEN 1 28 # define HAVE_MBLEN 1
29 # define HAVE_MBRLEN 1 29 # define HAVE_MBRLEN 1
30 # define HAVE_STRUCT_ERA_ENTRY 1 30 # define HAVE_STRUCT_ERA_ENTRY 1
31 # define HAVE_TM_GMTOFF 1 31 # define HAVE_TM_GMTOFF 1
32 # define HAVE_TM_ZONE 1 32 # define HAVE_STRUCT_TM_TM_ZONE 1
33 # define MULTIBYTE_IS_FORMAT_SAFE 1 33 # define MULTIBYTE_IS_FORMAT_SAFE 1
34 # define STDC_HEADERS 1 34 # define STDC_HEADERS 1
35 # include <ansidecl.h> 35 # include <ansidecl.h>
36 # include "../locale/localeinfo.h" 36 # include "../locale/localeinfo.h"
37 #endif 37 #endif
288 register size_t i = 0; 288 register size_t i = 0;
289 register char *p = s; 289 register char *p = s;
290 register const char *f; 290 register const char *f;
291 291
292 zone = 0; 292 zone = 0;
293 #if HAVE_TM_ZONE 293 #if HAVE_STRUCT_TM_TM_ZONE
294 zone = (const char *) tp->tm_zone; 294 zone = (const char *) tp->tm_zone;
295 #endif 295 #endif
296 #if HAVE_TZNAME 296 #if HAVE_TZNAME
297 if (!(zone && *zone) && tp->tm_isdst >= 0) 297 if (!(zone && *zone) && tp->tm_isdst >= 0)
298 zone = tzname[tp->tm_isdst]; 298 zone = tzname[tp->tm_isdst];