X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e90c1d2a19361551eb07778280f22be3e759cf64..07cf98cb8eb7625eeffc95e407a9fa1ad863b451:/src/common/time.cpp?ds=sidebyside diff --git a/src/common/time.cpp b/src/common/time.cpp index 53d034ccf1..1e358e4a09 100644 --- a/src/common/time.cpp +++ b/src/common/time.cpp @@ -34,12 +34,13 @@ seconds since January 1, 1901, GMT. #include "wx/utils.h" #include "wx/intl.h" -#include "wx/ioswrap.h" - -#if wxUSE_IOSTREAMH && wxUSE_STD_IOSTREAM - #include -#else - #include +#if wxUSE_STD_IOSTREAM + #include "wx/ioswrap.h" + #if wxUSE_IOSTREAMH + #include + #else + #include + #endif #endif #include @@ -147,7 +148,7 @@ wxTime::wxTime(const wxDate& date, hourTy h, minuteTy m, secondTy s, bool dst) /* if (IsDST()) setError(NIHCL_BADTIME,DEFAULT, date.dayOfMonth(),date.nameOfMonth(),date.year(), - h,m,s,(dst?_("DST("):"")); + h,m,s,(dst?_("DST"):"")); */ } sec += TIME_ZONE; // adjust to GMT @@ -346,10 +347,10 @@ wxChar *wxTime::FormatTime() const { switch (Precision) { case wxStdMinSec: - wxSprintf(timeBuf,T("%2d:%02d:%02d"),hh,GetMinute(),GetSecond()); + wxSprintf(timeBuf,wxT("%2d:%02d:%02d"),hh,GetMinute(),GetSecond()); break; case wxStdMin: - wxSprintf(timeBuf,T("%2d:%02d"),hh,GetMinute()); + wxSprintf(timeBuf,wxT("%2d:%02d"),hh,GetMinute()); break; }