// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifndef __WXDATEH__
-#define __WXDATEH__
+#ifndef _WX_DATE_H_
+#define _WX_DATE_H_
#ifdef __GNUG__
#pragma interface "date.h"
#include "wx/object.h"
#include "wx/string.h"
-#if USE_TIMEDATE
+#ifdef wxUSE_TIMEDATE
enum wxdate_format_type {wxMDY, wxDAY, wxMONTH, wxFULL, wxEUROPEAN};
wxDate (const wxString& dat);
wxDate (const wxDate &dt);
+#ifndef __SALFORDC__
operator wxString (void);
+#endif
+
void operator = (const wxDate& date);
void operator = (const wxString& date);
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);
#endif
#endif
- // __WXDATEH__
+ // _WX_DATE_H_