added build options sanity checks into all main libraries

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-08-04 13:19:44 +00:00
parent 2a7c760593
commit 34fdf76231
14 changed files with 60 additions and 1 deletions

View File

@@ -53,6 +53,10 @@
#include "wx/fontmap.h" #include "wx/fontmap.h"
#endif // wxUSE_FONTMAP #endif // wxUSE_FONTMAP
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxCore")
// ============================================================================ // ============================================================================
// wxAppBase implementation // wxAppBase implementation
// ============================================================================ // ============================================================================

View File

@@ -68,6 +68,10 @@
#include "wx/db.h" #include "wx/db.h"
// DLL options compatibility check:
#include "wx/app.h"
WX_CHECK_BUILD_OPTIONS("wxODBC")
WXDLLIMPEXP_DATA_ODBC(wxDbList*) PtrBegDbList = 0; WXDLLIMPEXP_DATA_ODBC(wxDbList*) PtrBegDbList = 0;

View File

@@ -33,6 +33,10 @@
#include "wx/generic/gridctrl.h" #include "wx/generic/gridctrl.h"
#include "wx/dbgrid.h" #include "wx/dbgrid.h"
// DLL options compatibility check:
#include "wx/app.h"
WX_CHECK_BUILD_OPTIONS("wxDbGrid")
wxDbGridCellAttrProvider::wxDbGridCellAttrProvider() wxDbGridCellAttrProvider::wxDbGridCellAttrProvider()
{ {

View File

@@ -41,6 +41,10 @@
#include "wx/sckaddr.h" #include "wx/sckaddr.h"
#include "wx/socket.h" #include "wx/socket.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxNet")
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
// macros and constants // macros and constants
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@@ -20,6 +20,11 @@
#ifdef wxHAS_TASK_BAR_ICON #ifdef wxHAS_TASK_BAR_ICON
// DLL options compatibility check:
#include "wx/app.h"
WX_CHECK_BUILD_OPTIONS("wxAdvanced")
#include "wx/taskbar.h" #include "wx/taskbar.h"
DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE ) DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE )

View File

@@ -33,6 +33,10 @@ extern "C"
#include "wx/gtk/win_gtk.h" #include "wx/gtk/win_gtk.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxGL")
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// global data // global data
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@@ -33,6 +33,10 @@ extern "C"
#include "wx/gtk/win_gtk.h" #include "wx/gtk/win_gtk.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxGL")
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// global data // global data
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@@ -35,6 +35,12 @@
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/arrimpl.cpp" #include "wx/arrimpl.cpp"
// DLL options compatibility check:
#include "wx/app.h"
WX_CHECK_BUILD_OPTIONS("wxHTML")
//static wxBuildOptionsChecker gs_optionsChecker;
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxHtmlParser helpers // wxHtmlParser helpers
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -915,5 +921,4 @@ wxString wxHtmlParser::ExtractCharsetInformation(const wxString& markup)
return charset; return charset;
} }
#endif #endif

View File

@@ -33,6 +33,10 @@
#include "wx/glcanvas.h" #include "wx/glcanvas.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxGL")
/* /*
* GLContext implementation * GLContext implementation
*/ */

View File

@@ -33,6 +33,10 @@
#include "wx/glcanvas.h" #include "wx/glcanvas.h"
#include "wx/mac/uma.h" #include "wx/mac/uma.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxGL")
/* /*
* GLContext implementation * GLContext implementation
*/ */

View File

@@ -32,6 +32,10 @@
#endif #endif
#include "wx/motif/private.h" #include "wx/motif/private.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxGL")
#ifdef OLD_MESA #ifdef OLD_MESA
// workaround for bug in Mesa's glx.c // workaround for bug in Mesa's glx.c
static int bitcount( unsigned long n ) static int bitcount( unsigned long n )

View File

@@ -30,6 +30,10 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxGL")
#include "wx/glcanvas.h" #include "wx/glcanvas.h"
/* /*
@@ -54,6 +58,7 @@
# pragma comment( lib, "glu32" ) # pragma comment( lib, "glu32" )
#endif #endif
static const wxChar *wxGLCanvasClassName = wxT("wxGLCanvasClass"); static const wxChar *wxGLCanvasClassName = wxT("wxGLCanvasClass");
static const wxChar *wxGLCanvasClassNameNoRedraw = wxT("wxGLCanvasClassNR"); static const wxChar *wxGLCanvasClassNameNoRedraw = wxT("wxGLCanvasClassNR");

View File

@@ -32,6 +32,10 @@
#endif #endif
#include "wx/x11/private.h" #include "wx/x11/private.h"
// DLL options compatibility check:
#include "wx/build.h"
WX_CHECK_BUILD_OPTIONS("wxGL")
static inline WXWindow wxGetClientAreaWindow(wxWindow* win) static inline WXWindow wxGetClientAreaWindow(wxWindow* win)
{ {
#ifdef __WXMOTIF__ #ifdef __WXMOTIF__

View File

@@ -32,6 +32,10 @@
#include "expat.h" // from Expat #include "expat.h" // from Expat
// DLL options compatibility check:
#include "wx/app.h"
WX_CHECK_BUILD_OPTIONS("wxXML")
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxXmlNode // wxXmlNode
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------