]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/chkconf.h
moving native format generation into bitmap ref data because of the owner semantics...
[wxWidgets.git] / include / wx / chkconf.h
index c69e95ebd625e871920e6ec303b9e683ed6e3b88..361ba6b5394ac162e551e0b588e71e3e5b9f74b4 100644 (file)
 #   define wxUSE_GUI 1
 #endif /* !defined(wxUSE_GUI) */
 
+/*
+    If we're compiling without support for threads/exceptions we have to
+    disable the corresponding features.
+ */
+#ifdef wxNO_THREADS
+#   undef wxUSE_THREADS
+#   define wxUSE_THREADS 0
+#endif /* wxNO_THREADS */
+
+#ifdef wxNO_EXCEPTIONS
+#   undef wxUSE_EXCEPTIONS
+#   define wxUSE_EXCEPTIONS 0
+#endif /* wxNO_EXCEPTIONS */
+
+
 /*
    tests for non GUI features
  */
 #   endif
 #endif /* wxUSE_CALENDARCTRL */
 
+#if wxUSE_DATEPICKCTRL
+#   if !wxUSE_DATETIME
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxDatePickerCtrl requires wxUSE_DATETIME"
+#       else
+#           undef wxUSE_DATETIME
+#           define wxUSE_DATETIME 1
+#       endif
+#   endif
+#endif /* wxUSE_DATEPICKCTRL */
+
 #if wxUSE_CHECKLISTBOX
 #   if !wxUSE_LISTBOX
 #        ifdef wxABORT_ON_CONFIG_ERROR
 #   endif
 #endif /* wxUSE_XRC */
 
-/* The generic date picker uses a popup window */
-#if !wxUSE_POPUPWIN
-#    undef wxUSE_DATEPICKCTRL
-#    define wxUSE_DATEPICKCTRL 0
-#endif  /* !wxUSE_POPUPWIN */
+#if wxUSE_SOCKETS && !wxUSE_STOPWATCH
+#   ifdef wxABORT_ON_CONFIG_ERROR
+#       error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
+#   else
+#       undef wxUSE_SOCKETS
+#       define wxUSE_SOCKETS 0
+#   endif
+#endif /* wxUSE_SOCKETS */
 
 #endif /* wxUSE_GUI */