]> git.saurik.com Git - wxWidgets.git/commitdiff
check that wxUSE_DATEPICKCTRL_GENERIC is defined before checking its value
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2005 00:34:03 +0000 (00:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2005 00:34:03 +0000 (00:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datectlg.cpp

index 299aec46f77c0f470a5d63ed81429a1b79752177..2c2a33d58aafe0ce796240277a0936b66b8262c8 100644 (file)
@@ -29,7 +29,8 @@
 
 // use this version if we're explicitly requested to do it or if it's the only
 // one we have
-#if wxUSE_DATEPICKCTRL_GENERIC || !defined(wxHAS_NATIVE_DATEPICKCTRL)
+#if !defined(wxHAS_NATIVE_DATEPICKCTRL) || \
+        (defined(wxUSE_DATEPICKCTRL_GENERIC) && wxUSE_DATEPICKCTRL_GENERIC)
 
 #ifndef WX_PRECOMP
     #include "wx/bmpbuttn.h"