]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/calctrl.cpp
Syntax fix.
[wxWidgets.git] / src / generic / calctrl.cpp
index ef716d85b2f1a3c0b3f79d8cc4075ee45b855c4c..6e6bf645b0066c9f377799cf6d227133531ed28c 100644 (file)
 
 #include "wx/spinctrl.h"
 
 
 #include "wx/spinctrl.h"
 
-#define _WX_DEFINE_DATE_EVENTS_
+// if wxDatePickerCtrl code doesn't define the date event, do it here as we
+// need it as well
+#if !wxUSE_DATEPICKCTRL
+    #define _WX_DEFINE_DATE_EVENTS_
+#endif
+
 #include "wx/calctrl.h"
 
 #define DEBUG_PAINT 0
 #include "wx/calctrl.h"
 
 #define DEBUG_PAINT 0