X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0bb22c23120f1e96caa8304f62b7d772ad803d6..830efc9b0cb87eae22d4435af7858175017522ab:/samples/memcheck/memcheck.cpp diff --git a/samples/memcheck/memcheck.cpp b/samples/memcheck/memcheck.cpp index 923f06f87d..e725baec22 100644 --- a/samples/memcheck/memcheck.cpp +++ b/samples/memcheck/memcheck.cpp @@ -6,7 +6,7 @@ // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -25,9 +25,9 @@ #include "wx/wx.h" #endif -#include "wx/date.h" +#include "wx/datetime.h" -#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) +#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__) #include "mondrian.xpm" #endif @@ -86,7 +86,10 @@ bool MyApp::OnInit(void) wxDebugContext::SetCheckpoint(); wxString *thing = new wxString; - wxDate* date = new wxDate; + +#if wxUSE_DATETIME + wxDateTime* date = new wxDateTime; +#endif // wxUSE_DATETIME // non-object allocation char *ordinaryNonObject = new char[1000];