X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd107c50be43e8d4dbdba20df162faf119a3781c..e74563e412a08aa004c5429efed7ef0031c2c1bf:/include/wx/date.h?ds=sidebyside diff --git a/include/wx/date.h b/include/wx/date.h index 635457d9d3..e117922511 100644 --- a/include/wx/date.h +++ b/include/wx/date.h @@ -13,7 +13,7 @@ #ifndef _WX_DATE_H_ #define _WX_DATE_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "date.h" #endif @@ -55,7 +55,7 @@ public: wxDate(long j) : m_date((double)(j + 0.5)) { Init(); } wxDate(int m, int d, int y) : m_date(d, (wxDateTime::Month)m, y) { Init(); } wxDate(const wxString& dat) { Init(); (void)m_date.ParseDate(dat); } - wxDate(const wxDate &date) { *this = date; } + wxDate(const wxDate &date) : wxObject() { *this = date; } wxDate(const wxDateTime& dt) { Init(); m_date = dt; }