X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c67daf87774c71ae9f73af9969008af220e52a11..1363811bb6338fb0dad6c16cfa47f46fb1eb3b99:/src/common/date.cpp diff --git a/src/common/date.cpp b/src/common/date.cpp index bda79ab3a2..2b248eab65 100644 --- a/src/common/date.cpp +++ b/src/common/date.cpp @@ -28,7 +28,7 @@ #include "wx/setup.h" -#if USE_TIMEDATE +#if wxUSE_TIMEDATE #include "wx/date.h" #include @@ -37,7 +37,7 @@ #include #include -#if USE_IOSTREAMH +#if wxUSE_IOSTREAMH #include #else #include @@ -159,10 +159,12 @@ void wxDate::operator = (const wxString& dat) // Conversion operations ////////////////////////////////////////////////////////////// +#ifndef __SALFORDC__ wxDate::operator wxString( void ) { return FormatDate(); } +#endif ////////////////////////////////////////////////////////////// // Date Arithmetic @@ -243,32 +245,32 @@ wxDate &wxDate::operator --(int) // Date comparison ////////////////////////////////////////////////////////////// -bool operator < (const wxDate &dt1, const wxDate &dt2) +bool WXDLLEXPORT operator < (const wxDate &dt1, const wxDate &dt2) { return ( dt1.julian < dt2.julian ); } -bool operator <= (const wxDate &dt1, const wxDate &dt2) +bool WXDLLEXPORT operator <= (const wxDate &dt1, const wxDate &dt2) { return ( (dt1.julian == dt2.julian) || (dt1.julian < dt2.julian) ); } -bool operator > (const wxDate &dt1, const wxDate &dt2) +bool WXDLLEXPORT operator > (const wxDate &dt1, const wxDate &dt2) { return ( dt1.julian > dt2.julian ); } -bool operator >= (const wxDate &dt1, const wxDate &dt2) +bool WXDLLEXPORT operator >= (const wxDate &dt1, const wxDate &dt2) { return ( (dt1.julian == dt2.julian) || (dt1.julian > dt2.julian) ); } -bool operator == (const wxDate &dt1, const wxDate &dt2) +bool WXDLLEXPORT operator == (const wxDate &dt1, const wxDate &dt2) { return ( dt1.julian == dt2.julian ); } -bool operator != (const wxDate &dt1, const wxDate &dt2) +bool WXDLLEXPORT operator != (const wxDate &dt1, const wxDate &dt2) { return ( dt1.julian != dt2.julian ); } @@ -277,7 +279,7 @@ bool operator != (const wxDate &dt1, const wxDate &dt2) // Ostream operations //////////////////////////////////////////////////////////////// -ostream &operator << (ostream &os, const wxDate &dt) +ostream WXDLLEXPORT & operator << (ostream &os, const wxDate &dt) { return os << (const char *) dt.FormatDate(); }