comparison src/strftime.c @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents 74fd4e045ea6
children 697ef44129c6
comparison
equal deleted inserted replaced
409:301b9ebbdf3b 410:de805c49cfc1
92 92
93 #ifndef STDC_HEADERS 93 #ifndef STDC_HEADERS
94 time_t mktime (); 94 time_t mktime ();
95 #endif 95 #endif
96 96
97 #if defined(WINDOWSNT) || defined(__CYGWIN32__) 97 #if defined(WIN32_NATIVE) || defined(CYGWIN)
98 #include <time.h> 98 #include <time.h>
99 #else 99 #else
100 #if defined(HAVE_TZNAME) 100 #if defined(HAVE_TZNAME)
101 extern char *tzname[2]; 101 extern char *tzname[2];
102 #endif 102 #endif
103 #endif /* WINDOWSNT */ 103 #endif /* WIN32_NATIVE */
104 104
105 #ifdef emacs 105 #ifdef emacs
106 #define strftime emacs_strftime 106 #define strftime emacs_strftime
107 #endif 107 #endif
108 108
231 dl = tm->tm_yday - wday; 231 dl = tm->tm_yday - wday;
232 return dl <= 0 ? 0 : dl / 7 + (dl % 7 != 0); 232 return dl <= 0 ? 0 : dl / 7 + (dl % 7 != 0);
233 } 233 }
234 234
235 #if !defined(HAVE_TM_ZONE) && !defined(HAVE_TZNAME) 235 #if !defined(HAVE_TM_ZONE) && !defined(HAVE_TZNAME)
236 char *zone_name (const struct tm *tp);
236 char * 237 char *
237 zone_name (const struct tm *tp) 238 zone_name (const struct tm *tp)
238 { 239 {
239 char *timezone (); 240 char *timezone ();
240 struct timeval tv; 241 struct timeval tv;