]> git.saurik.com Git - wxWidgets.git/commitdiff
check for wxUSE_REARRANGECTRL dependency on wxUSE_CHECKLISTBOX (see #10331)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jan 2009 00:59:49 +0000 (00:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jan 2009 00:59:49 +0000 (00:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/chkconf.h

index 21497874b1f7c49761d60c9d0b6f1220c8bcef0a..65a6c2b17214c8bae2c7b6a72689bcc8bf0a1cf8 100644 (file)
 #   endif
 #endif /* !defined(wxUSE_HELP) */
 
-#ifndef wxUSE_HEADERCTRL
-#   ifdef wxABORT_ON_CONFIG_ERROR
-#       error "wxUSE_HEADERCTRL must be defined."
-#   else
-#       define wxUSE_HEADERCTRL 0
-#   endif
-#endif /* !defined(wxUSE_HEADERCTRL) */
-
 #ifndef wxUSE_HYPERLINKCTRL
 #   ifdef wxABORT_ON_CONFIG_ERROR
 #       error "wxUSE_HYPERLINKCTRL must be defined."
 #   endif
 #endif /* !wxUSE_HEADERCTRL */
 
+#if wxUSE_REARRANGECTRL
+#   if !wxUSE_CHECKLISTBOX
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxRearrangeCtrl requires wxCheckListBox"
+#       else
+#           undef wxUSE_REARRANGECTRL
+#           define wxUSE_REARRANGECTRL 0
+#       endif
+#   endif
+#endif /* wxUSE_REARRANGECTRL */
+
 /* don't attempt to use native status bar on the platforms not having it */
 #ifndef wxUSE_NATIVE_STATUSBAR
 #   define wxUSE_NATIVE_STATUSBAR 0