]> git.saurik.com Git - wxWidgets.git/commitdiff
moved dynamic loader option checks to chkconf.h
authorRon Lee <ron@debian.org>
Thu, 20 Dec 2001 02:39:38 +0000 (02:39 +0000)
committerRon Lee <ron@debian.org>
Thu, 20 Dec 2001 02:39:38 +0000 (02:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/chkconf.h
src/common/filename.cpp
src/msw/dialup.cpp
src/msw/helpchm.cpp

index a9a252e60a1293c83075de92357f9edadf366770..fc214570ba5f2741b6d7e4c9b2d55f4f753cd227 100644 (file)
  */
 #define wxABORT_ON_CONFIG_ERROR
 
+
+
 /*
-   all these tests are for GUI onlu
+   tests for non GUI features
+ */
+
+#ifndef wxUSE_DYNLIB_CLASS
+#   ifdef wxABORT_ON_CONFIG_ERROR
+#       error "wxUSE_DYNLIB_CLASS must be defined."
+#   else
+#       define wxUSE_DYNLIB_CLASS 0
+#   endif
+#endif /* !defined(wxUSE_DYNLIB_CLASS) */
+
+#ifndef wxUSE_DYNAMIC_LOADER
+#   ifdef wxABORT_ON_CONFIG_ERROR
+#       error "wxUSE_DYNAMIC_LOADER must be defined."
+#   else
+#       define wxUSE_DYNAMIC_LOADER 0
+#   endif
+#endif /* !defined(wxUSE_DYNAMIC_LOADER) */
+
+/*
+   all these tests are for GUI only
  */
 #if wxUSE_GUI
 
 #   endif
 #endif /* !defined(wxUSE_UNICODE) */
 
-#if defined(__WXMSW__) && !defined(wxUSE_UNICODE_MSLU)
-#   ifdef wxABORT_ON_CONFIG_ERROR
-#       error "wxUSE_UNICODE_MSLU must be defined."
-#   else
-#       define wxUSE_UNICODE_MSLU 0
-#   endif
-#endif /* !defined(wxUSE_UNICODE) */
-
 /*
    check consistency of the settings
  */
 #   endif
 #endif /* wxGTK && !wxUniv */
 
+/* wxMSW-specific dependencies */
+#ifdef __WXMSW__
+#   ifndef wxUSE_UNICODE_MSLU
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxUSE_UNICODE_MSLU must be defined."
+#       else
+#           define wxUSE_UNICODE_MSLU 0
+#       endif
+#   endif  /* wxUSE_UNICODE_MSLU */
+#   ifndef wxUSE_MS_HTML_HELP
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxUSE_MS_HTML_HELP must be defined."
+#       else
+#           define wxUSE_MS_HTML_HELP 0
+#       endif
+#   endif /* !defined(wxUSE_MS_HTML_HELP) */
+#   ifndef wxUSE_DIALUP_MANAGER
+#       ifdef wxABORT_ON_CONFIG_ERROR
+#           error "wxUSE_DIALUP_MANAGER must be defined."
+#       else
+#           define wxUSE_DIALUP_MANAGER 0
+#       endif
+#   endif /* !defined(wxUSE_DIALUP_MANAGER) */
+
+#   if !(wxUSE_DYNAMIC_LOADER || wxUSE_DYNLIB_CLASS)
+#       if wxUSE_MS_HTML_HELP
+#           ifdef wxABORT_ON_CONFIG_ERROR
+#               error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
+#           else
+#               define wxUSE_DYNAMIC_LOADER 1
+#           endif
+#       endif
+#       if wxUSE_DIALUP_MANAGER
+#           ifdef wxABORT_ON_CONFIG_ERROR
+#               error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
+#           else
+#               define wxUSE_DYNAMIC_LOADER 1
+#           endif
+#       endif
+#   endif  /* wxUSE_DYNAMIC_LOADER */
+#endif /* wxMSW */
+
 /* wxMotif-specific dependencies */
 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
 #  undef wxUSE_TAB_DIALOG
 #       error "wxUSE_DYNAMIC_CLASSES must be defined as 1"
 #   else
 #       undef wxUSE_DYNAMIC_CLASSES
-#       define wxUSE_DYNAMIC_CLASSES
+#       define wxUSE_DYNAMIC_CLASSES 1
 #   endif
 #endif /* wxUSE_DYNAMIC_CLASSES */
 
index 4dc91cb910f56bd7d1af21eb1957f4f63416a1b4..aae38ea3ef4ee4fe02ee62a53131f59e9b40b3c7 100644 (file)
 #include "wx/config.h"          // for wxExpandEnvVars
 #include "wx/utils.h"
 #include "wx/file.h"
-
-#if wxUSE_DYNAMIC_LOADER || wxUSE_DYNLIB_CLASS
-#include "wx/dynlib.h"
-#endif
+//#include "wx/dynlib.h"        // see GetLongPath below, code disabled.
 
 // For GetShort/LongPathName
 #ifdef __WIN32__
index b3ac982fcfe9aadb425cc5b0bef8af57a9b61c5c..e6e83d87ad9f9241f266103b52c99adf82858192 100644 (file)
 
 #include "wx/msw/private.h"  // must be before #include "dynlib.h"
 
-#if wxUSE_DYNAMIC_LOADER || wxUSE_DYNLIB_CLASS
 #include "wx/dynlib.h"
-#else
-#error You need wxUSE_DYNAMIC_LOADER to be 1 to compile dialup.cpp.
-#endif
-
 #include "wx/dialup.h"
 
 DEFINE_EVENT_TYPE(wxEVT_DIALUP_CONNECTED)
index 37035ff4553a9ca7bd2c7734644f1bbadade15fe..c7090d087757a8832fff8a640e3b2c7131dfe94d 100644 (file)
@@ -29,9 +29,7 @@
 #if wxUSE_HELP && wxUSE_MS_HTML_HELP && defined(__WIN95__)
 #include "wx/msw/helpchm.h"
 
-#if wxUSE_DYNAMIC_LOADER || wxUSE_DYNLIB_CLASS
 #include "wx/dynlib.h"
-#endif
 
 #ifndef WX_PRECOMP
 #include <windows.h>