From 146e73f9fc2631a0e7d176606bb23fded611bc79 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 29 Jul 2000 22:11:52 +0000 Subject: [PATCH] some minor tweaks for wxBase git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/setup0.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index 974ff8dd99..b64b5e0c7d 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -274,6 +274,8 @@ // Set to 1 to use socket classes #define wxUSE_SOCKETS 1 +#if wxUSE_GUI + // Set to 1 to enable virtual file systems (required by wxHTML) #define wxUSE_FILESYSTEM 1 @@ -290,6 +292,18 @@ // wxUSE_LIBPNG. #define wxUSE_ZLIB 1 +#else // !wxUSE_GUI + +// although it is possible to compile all of those in wxBase, this is not done +// by default +#define wxUSE_FILESYSTEM 0 +#define wxUSE_FS_ZIP 0 +#define wxUSE_FS_INET 0 +#define wxUSE_ZIPSTREAM 0 +#define wxUSE_ZLIB 0 + +#endif // wxUSE_GUI/!wxUSE_GUI + // If enabled, the code written by Apple will be used to write, in a portable // way, float on the disk. See extended.c for the license which is different // from wxWindows one. @@ -886,6 +900,17 @@ #endif // Win16 +// ---------------------------------------------------------------------------- +// undef the things which don't make sense for wxBase build +// ---------------------------------------------------------------------------- + +#if !wxUSE_GUI + +#undef wxUSE_HTML +#define wxUSE_HTML 0 + +#endif // !wxUSE_GUI + // ---------------------------------------------------------------------------- // check the settings consistency: do it here to abort compilation immediately // and not almost in the very end when the relevant file fails to compile and