X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00421206821da3373ddc075d63149826b3be38af..678d9f2a42faa84cf934bbb75a5b4414a094012e:/src/common/date.cpp diff --git a/src/common/date.cpp b/src/common/date.cpp index 04d7fdbcb9..809730cd69 100644 --- a/src/common/date.cpp +++ b/src/common/date.cpp @@ -23,25 +23,19 @@ #include "wx/wxprec.h" #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif -#include "wx/setup.h" - #if wxUSE_TIMEDATE #include "wx/date.h" -#include +#include "wx/intl.h" #include #include #include -#if wxUSE_IOSTREAMH -#include -#else -#include -#endif +#include "wx/ioswrap.h" #include #include @@ -276,6 +270,9 @@ bool WXDLLEXPORT operator != (const wxDate &dt1, const wxDate &dt2) return ( dt1.julian != dt2.julian ); } + +#if wxUSE_STD_IOSTREAM + //////////////////////////////////////////////////////////////// // Ostream operations //////////////////////////////////////////////////////////////// @@ -285,13 +282,19 @@ ostream WXDLLEXPORT & operator << (ostream &os, const wxDate &dt) return os << dt.FormatDate().mb_str(); } +#endif + ////////////////////////////////////////////////////////////// // Conversion routines ////////////////////////////////////////////////////////////// void wxDate::julian_to_wday (void) { + // Correction by Peter Stadel + day_of_week = ((julian - 2) % 7L); +/* day_of_week = (int) ((julian + 2) % 7 + 1); +*/ } void wxDate::julian_to_mdy ()