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) ...@@ -173,7 +173,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
173 tm->tm_year = (year > 1900) ? year - 1900 : year; 173 tm->tm_year = (year > 1900) ? year - 1900 : year;
174 tm->tm_yday = 0; /* unknown. */ 174 tm->tm_yday = 0; /* unknown. */
175 tm->tm_wday = 0; /* unknown. */ 175 tm->tm_wday = 0; /* unknown. */
176 #if HAVE_TM_ISDST 176 #if HAVE_STRUCT_TM_TM_ISDST
177 tm->tm_isdst = -1; /* unknown. */ 177 tm->tm_isdst = -1; /* unknown. */
178 #endif 178 #endif
179 179
...@@ -182,7 +182,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz) ...@@ -182,7 +182,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
182 sign = (zone[0] == '-') ? -1 : +1; 182 sign = (zone[0] == '-') ? -1 : +1;
183 tzoffset = sign * (hh * 60 * 60 + mm * 60); 183 tzoffset = sign * (hh * 60 * 60 + mm * 60);
184 184
185 #if HAVE_TM_GMTOFFSET 185 #if HAVE_STRUCT_TM_TM_GMTOFFSET
186 tm->tm_gmtoffset = tzoffset; 186 tm->tm_gmtoffset = tzoffset;
187 #endif 187 #endif
188 188
...@@ -248,7 +248,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz) ...@@ -248,7 +248,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz)
248 tm->tm_wday = wday; 248 tm->tm_wday = wday;
249 tm->tm_mon = mon; 249 tm->tm_mon = mon;
250 tm->tm_year = (year > 1900) ? year - 1900 : year; 250 tm->tm_year = (year > 1900) ? year - 1900 : year;
251 #ifdef HAVE_TM_ISDST 251 #ifdef HAVE_STRUCT_TM_TM_ISDST
252 tm->tm_isdst = -1; /* unknown. */ 252 tm->tm_isdst = -1; /* unknown. */
253 #endif 253 #endif
254 } 254 }
......
...@@ -1710,13 +1710,13 @@ parse822_date_time (const char **p, const char *e, struct tm *tm, ...@@ -1710,13 +1710,13 @@ parse822_date_time (const char **p, const char *e, struct tm *tm,
1710 tm->tm_min = min; 1710 tm->tm_min = min;
1711 tm->tm_sec = sec; 1711 tm->tm_sec = sec;
1712 1712
1713 #ifdef HAVE_TM_ISDST 1713 #ifdef HAVE_STRUCT_TM_TM_ISDST
1714 tm->tm_isdst = -1; /* unknown whether it's dst or not */ 1714 tm->tm_isdst = -1; /* unknown whether it's dst or not */
1715 #endif 1715 #endif
1716 #ifdef HAVE_TM_GMTOFF 1716 #ifdef HAVE_STRUCT_TM_TM_GMTOFF
1717 tm->tm_gmtoff = tzoffset; 1717 tm->tm_gmtoff = tzoffset;
1718 #endif 1718 #endif
1719 #ifdef HAVE_TM_ZONE 1719 #ifdef HAVE_STRUCT_TM_TM_ZONE
1720 tm->tm_zone = tz_name; 1720 tm->tm_zone = tz_name;
1721 #endif 1721 #endif
1722 } 1722 }
......
...@@ -159,7 +159,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz) ...@@ -159,7 +159,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
159 tm->tm_year = (year > 1900) ? year - 1900 : year; 159 tm->tm_year = (year > 1900) ? year - 1900 : year;
160 tm->tm_yday = 0; /* unknown. */ 160 tm->tm_yday = 0; /* unknown. */
161 tm->tm_wday = 0; /* unknown. */ 161 tm->tm_wday = 0; /* unknown. */
162 #if HAVE_TM_ISDST 162 #if HAVE_STRUCT_TM_TM_ISDST
163 tm->tm_isdst = -1; /* unknown. */ 163 tm->tm_isdst = -1; /* unknown. */
164 #endif 164 #endif
165 165
...@@ -168,7 +168,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz) ...@@ -168,7 +168,7 @@ mu_parse_imap_date_time (const char **p, struct tm *tm, mu_timezone *tz)
168 sign = (zone[0] == '-') ? -1 : +1; 168 sign = (zone[0] == '-') ? -1 : +1;
169 tzoffset = sign * (hh * 60 * 60 + mm * 60); 169 tzoffset = sign * (hh * 60 * 60 + mm * 60);
170 170
171 #if HAVE_TM_GMTOFFSET 171 #if HAVE_STRUCT_TM_TM_GMTOFFSET
172 tm->tm_gmtoffset = tzoffset; 172 tm->tm_gmtoffset = tzoffset;
173 #endif 173 #endif
174 174
...@@ -234,7 +234,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz) ...@@ -234,7 +234,7 @@ mu_parse_ctime_date_time (const char **p, struct tm *tm, mu_timezone * tz)
234 tm->tm_wday = wday; 234 tm->tm_wday = wday;
235 tm->tm_mon = mon; 235 tm->tm_mon = mon;
236 tm->tm_year = (year > 1900) ? year - 1900 : year; 236 tm->tm_year = (year > 1900) ? year - 1900 : year;
237 #ifdef HAVE_TM_ISDST 237 #ifdef HAVE_STRUCT_TM_TM_ISDST
238 tm->tm_isdst = -1; /* unknown. */ 238 tm->tm_isdst = -1; /* unknown. */
239 #endif 239 #endif
240 } 240 }
......
...@@ -1486,13 +1486,13 @@ int parse822_date_time(const char** p, const char* e, struct tm* tm, struct mu_t ...@@ -1486,13 +1486,13 @@ int parse822_date_time(const char** p, const char* e, struct tm* tm, struct mu_t
1486 tm->tm_min = min; 1486 tm->tm_min = min;
1487 tm->tm_sec = sec; 1487 tm->tm_sec = sec;
1488 1488
1489 #ifdef HAVE_TM_ISDST 1489 #ifdef HAVE_STRUCT_TM_TM_ISDST
1490 tm->tm_isdst = -1; /* unknown whether it's dst or not */ 1490 tm->tm_isdst = -1; /* unknown whether it's dst or not */
1491 #endif 1491 #endif
1492 #ifdef HAVE_TM_GMTOFF 1492 #ifdef HAVE_STRUCT_TM_TM_GMTOFF
1493 tm->tm_gmtoff = tzoffset; 1493 tm->tm_gmtoff = tzoffset;
1494 #endif 1494 #endif
1495 #ifdef HAVE_TM_ZONE 1495 #ifdef HAVE_STRUCT_TM_TM_ZONE
1496 tm->tm_zone = tz_name; 1496 tm->tm_zone = tz_name;
1497 #endif 1497 #endif
1498 } 1498 }
......
...@@ -920,7 +920,7 @@ builtin_dst (struct mh_machine *mach) ...@@ -920,7 +920,7 @@ builtin_dst (struct mh_machine *mach)
920 920
921 if (_parse_date (mach, &tm, &tz)) 921 if (_parse_date (mach, &tm, &tz))
922 return; 922 return;
923 #ifdef HAVE_TM_ISDST 923 #ifdef HAVE_STRUCT_TM_TM_ISDST
924 mach->arg_num = tm.tm_isdst; 924 mach->arg_num = tm.tm_isdst;
925 #else 925 #else
926 mach->arg_num = 0; 926 mach->arg_num = 0;
......