]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/memcheck/memcheck.cpp
fix for focus handling in generic wxListCtrl
[wxWidgets.git] / samples / memcheck / memcheck.cpp
index e09ad22ba29aa0eea106b6622dce5ad644952bb4..54712a16f489e8aee432b2033112783b929dcb17 100644 (file)
@@ -25,9 +25,9 @@
 #include "wx/wx.h"
 #endif
 
 #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
 
 #include "mondrian.xpm"
 #endif
 
@@ -86,7 +86,10 @@ bool MyApp::OnInit(void)
   wxDebugContext::SetCheckpoint();
 
   wxString *thing = new wxString;
   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];
 
   // non-object allocation
   char *ordinaryNonObject = new char[1000];