]> git.saurik.com Git - wxWidgets.git/commitdiff
add check for wxUSE_XLOCALE (and also wxUSE_INTL which wasn't checked for some reason)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Feb 2008 17:08:44 +0000 (17:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Feb 2008 17:08:44 +0000 (17:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/chkconf.h

index 56032a719b855bf41c5e3dcb27ffebce6073321b..1ea7d95e192dae4107a6da42b82fd8dfd2f3b6dd 100644 (file)
 #   endif
 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
 
+#ifndef wxUSE_INTL
+#   ifdef wxABORT_ON_CONFIG_ERROR
+#       error "wxUSE_INTL must be defined."
+#   else
+#       define wxUSE_INTL 0
+#   endif
+#endif /* !defined(wxUSE_INTL) */
+
 #ifndef wxUSE_LOG
 #   ifdef wxABORT_ON_CONFIG_ERROR
 #       error "wxUSE_LOG must be defined."
 #   endif
 #endif /* wxUSE_WEAKREF */
 
+#ifndef wxUSE_XLOCALE
+#   ifdef wxABORT_ON_CONFIG_ERROR
+#       error "wxUSE_XLOCALE must be defined."
+#   else
+#       define wxUSE_XLOCALE 0
+#   endif
+#endif /* !defined(wxUSE_XLOCALE) */
+
 /*
    Section 1b: all these tests are for GUI only.
 
 #  include "wx/x11/chkconf.h"
 #endif
 
-#ifdef __UNIX__
+/*
+    __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
+    there if we're building wxMSW.
+ */
+#if defined(__UNIX__) && !defined(__WXMSW__)
 #   include "wx/unix/chkconf.h"
 #endif