X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2db0bbdecd8b979c00eef0276075d1e314b35d93..9cb0033cb22efd891e56a8d6b710ce1364b02ea5:/samples/memcheck/memcheck.cpp diff --git a/samples/memcheck/memcheck.cpp b/samples/memcheck/memcheck.cpp index e09ad22ba2..54712a16f4 100644 --- a/samples/memcheck/memcheck.cpp +++ b/samples/memcheck/memcheck.cpp @@ -25,9 +25,9 @@ #include "wx/wx.h" #endif -#include "wx/date.h" +#include "wx/datetime.h" -#if defined(__WXGTK__) || defined(__WXMOTIF__) +#if defined(__WXGTK__) || 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];