X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..a6e2157322eedc8142be3a24cb3fe26eb1e8a0e8:/include/wx/date.h?ds=sidebyside diff --git a/include/wx/date.h b/include/wx/date.h index d0a47dc705..49936f064d 100644 --- a/include/wx/date.h +++ b/include/wx/date.h @@ -10,8 +10,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __WXDATEH__ -#define __WXDATEH__ +#ifndef _WX_DATE_H_ +#define _WX_DATE_H_ #ifdef __GNUG__ #pragma interface "date.h" @@ -20,7 +20,7 @@ #include "wx/object.h" #include "wx/string.h" -#if USE_TIMEDATE +#if wxUSE_TIMEDATE enum wxdate_format_type {wxMDY, wxDAY, wxMONTH, wxFULL, wxEUROPEAN}; @@ -52,7 +52,10 @@ class WXDLLEXPORT wxDate: public wxObject wxDate (const wxString& dat); wxDate (const wxDate &dt); +#ifndef __SALFORDC__ operator wxString (void); +#endif + void operator = (const wxDate& date); void operator = (const wxString& date); @@ -72,14 +75,14 @@ class WXDLLEXPORT wxDate: public wxObject wxDate &operator -- (); // Prefix decrement wxDate &operator -- (int); // Postfix decrement - friend bool operator < (const wxDate &dt1, const wxDate &dt2); - friend bool operator <= (const wxDate &dt1, const wxDate &dt2); - friend bool operator > (const wxDate &dt1, const wxDate &dt2); - friend bool operator >= (const wxDate &dt1, const wxDate &dt2); - friend bool operator == (const wxDate &dt1, const wxDate &dt2); - friend bool operator != (const wxDate &dt1, const wxDate &dt2); + friend bool WXDLLEXPORT operator < (const wxDate &dt1, const wxDate &dt2); + friend bool WXDLLEXPORT operator <= (const wxDate &dt1, const wxDate &dt2); + friend bool WXDLLEXPORT operator > (const wxDate &dt1, const wxDate &dt2); + friend bool WXDLLEXPORT operator >= (const wxDate &dt1, const wxDate &dt2); + friend bool WXDLLEXPORT operator == (const wxDate &dt1, const wxDate &dt2); + friend bool WXDLLEXPORT operator != (const wxDate &dt1, const wxDate &dt2); - friend ostream &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); @@ -128,4 +131,4 @@ class WXDLLEXPORT wxDate: public wxObject #endif #endif - // __WXDATEH__ + // _WX_DATE_H_