X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9838df2cefc5b368bb11f98c784ecc78f45ecaf7..da61ab3189f71a2b0913bac13c48755c5d038037:/include/wx/date.h diff --git a/include/wx/date.h b/include/wx/date.h index 86c503ec49..fae4f9ec50 100644 --- a/include/wx/date.h +++ b/include/wx/date.h @@ -21,6 +21,15 @@ #include "wx/string.h" #if wxUSE_TIMEDATE +// These lines necessary to stop VC++ 6 being confused about namespaces +class WXDLLEXPORT wxDate; +bool WXDLLEXPORT operator<(const wxDate &dt1, const wxDate &dt2); +bool WXDLLEXPORT operator<(const wxDate &dt1, const wxDate &dt2); +bool WXDLLEXPORT operator <= (const wxDate &dt1, const wxDate &dt2); +bool WXDLLEXPORT operator > (const wxDate &dt1, const wxDate &dt2); +bool WXDLLEXPORT operator >= (const wxDate &dt1, const wxDate &dt2); +bool WXDLLEXPORT operator == (const wxDate &dt1, const wxDate &dt2); +bool WXDLLEXPORT operator != (const wxDate &dt1, const wxDate &dt2); enum wxdate_format_type {wxMDY, wxDAY, wxMONTH, wxFULL, wxEUROPEAN}; @@ -82,7 +91,7 @@ class WXDLLEXPORT wxDate: public wxObject friend bool WXDLLEXPORT operator == (const wxDate &dt1, const wxDate &dt2); friend bool WXDLLEXPORT operator != (const wxDate &dt1, const wxDate &dt2); - friend ostream& WXDLLEXPORT operator << (ostream &os, const wxDate &dt); + friend ostream WXDLLEXPORT & operator << (ostream &os, const wxDate &dt); wxString FormatDate (int type=-1) const; void SetFormat (int format);