Commit f318f2a4 f318f2a44edb8c419c3596b9586b2a36430c11e1 by Sergey Poznyakoff

Changed HAVE_TM_.* to HAVE_STRUCT_TM_.*

1 parent 02bef600
......@@ -173,7 +173,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
tm->tm_year = (year > 1900) ? year - 1900 : year;
tm->tm_yday = 0; /* unknown. */
tm->tm_wday = 0; /* unknown. */
#if HAVE_TM_ISDST
#if HAVE_STRUCT_TM_TM_ISDST
tm->tm_isdst = -1; /* unknown. */
#endif
......@@ -182,7 +182,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
sign = (zone[0] == '-') ? -1 : +1;
tzoffset = sign * (hh * 60 * 60 + mm * 60);
#if HAVE_TM_GMTOFFSET
#if HAVE_STRUCT_TM_TM_GMTOFFSET
tm->tm_gmtoffset = tzoffset;
#endif
......@@ -248,7 +248,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz)
tm->tm_wday = wday;
tm->tm_mon = mon;
tm->tm_year = (year > 1900) ? year - 1900 : year;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_STRUCT_TM_TM_ISDST
tm->tm_isdst = -1; /* unknown. */
#endif
}
......
......@@ -1710,13 +1710,13 @@ parse822_date_time (const char **p, const char *e, struct tm *tm,
tm->tm_min = min;
tm->tm_sec = sec;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_STRUCT_TM_TM_ISDST
tm->tm_isdst = -1; /* unknown whether it's dst or not */
#endif
#ifdef HAVE_TM_GMTOFF
#ifdef HAVE_STRUCT_TM_TM_GMTOFF
tm->tm_gmtoff = tzoffset;
#endif
#ifdef HAVE_TM_ZONE
#ifdef HAVE_STRUCT_TM_TM_ZONE
tm->tm_zone = tz_name;
#endif
}
......
......@@ -159,7 +159,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
tm->tm_year = (year > 1900) ? year - 1900 : year;
tm->tm_yday = 0; /* unknown. */
tm->tm_wday = 0; /* unknown. */
#if HAVE_TM_ISDST
#if HAVE_STRUCT_TM_TM_ISDST
tm->tm_isdst = -1; /* unknown. */
#endif
......@@ -168,7 +168,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
sign = (zone[0] == '-') ? -1 : +1;
tzoffset = sign * (hh * 60 * 60 + mm * 60);
#if HAVE_TM_GMTOFFSET
#if HAVE_STRUCT_TM_TM_GMTOFFSET
tm->tm_gmtoffset = tzoffset;
#endif
......@@ -234,7 +234,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz)
tm->tm_wday = wday;
tm->tm_mon = mon;
tm->tm_year = (year > 1900) ? year - 1900 : year;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_STRUCT_TM_TM_ISDST
tm->tm_isdst = -1; /* unknown. */
#endif
}
......
......@@ -1486,13 +1486,13 @@ int parse822_date_time(const char** p, const char* e, struct tm* tm, struct mu_t
tm->tm_min = min;
tm->tm_sec = sec;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_STRUCT_TM_TM_ISDST
tm->tm_isdst = -1; /* unknown whether it's dst or not */
#endif
#ifdef HAVE_TM_GMTOFF
#ifdef HAVE_STRUCT_TM_TM_GMTOFF
tm->tm_gmtoff = tzoffset;
#endif
#ifdef HAVE_TM_ZONE
#ifdef HAVE_STRUCT_TM_TM_ZONE
tm->tm_zone = tz_name;
#endif
}
......
......@@ -920,7 +920,7 @@ builtin_dst (struct mh_machine *mach)
if (_parse_date (mach, &tm, &tz))
return;
#ifdef HAVE_TM_ISDST
#ifdef HAVE_STRUCT_TM_TM_ISDST
mach->arg_num = tm.tm_isdst;
#else
mach->arg_num = 0;
......