Current state of my dtmail work.

Mostly #ifdefs and casts; also, do not redefine strcasestr().  This will
probably be needed for Linux too when compiling without -fpermissive.
This commit is contained in:
Pascal Stumpf
2012-08-11 13:57:26 +02:00
committed by Jon Trulson
parent 7c3a972d32
commit e3ad7e24e3
23 changed files with 75 additions and 57 deletions

View File

@@ -51,6 +51,7 @@
#include <strings.h>
#endif
#include <ctype.h>
#include <stdint.h>
#include <DtMail/IO.hh>
#include "RFCImpl.hh"
@@ -490,7 +491,9 @@ RFCValue::toDate(void)
new_time.tm_isdst = -1;
date.dtm_date = SafeMktime(&new_time);
date.dtm_tz_offset_secs = (int) timezone;
#ifdef SVR4
date.dtm_tz_offset_secs = timezone;
#endif
}
else {
// In this format, we should have a day of the month.
@@ -536,15 +539,19 @@ RFCValue::toDate(void)
time_t offset = parseTZ(token_begin[this_token], token_end[this_token]);
time_t orig_zone = (time_t) timezone;
#ifdef SVR4
time_t orig_zone = timezone;
timezone = offset;
#endif
// Tell "mktime" to figure "dst" on or not.
new_time.tm_isdst = -1;
date.dtm_date = SafeMktime(&new_time);
date.dtm_tz_offset_secs = offset;
#ifdef SVR4
timezone = orig_zone;
#endif
}
return(date);