X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48c12cb1290224f44161d9af774170d5f0fae440..a200c35efa060107d8243458fca160eb237b9c23:/src/common/odbc.cpp diff --git a/src/common/odbc.cpp b/src/common/odbc.cpp index 224738bda4..bdf71719d7 100644 --- a/src/common/odbc.cpp +++ b/src/common/odbc.cpp @@ -23,7 +23,11 @@ #include "wx/defs.h" -#if wxUSE_ODBC +// this code is old and shouldn't be used - use the new ODBC classes in db.cpp +// and dbtable.cpp instead +#define wxUSE_OLD_ODBC 0 + +#if wxUSE_OLD_ODBC #ifdef __VISUALC__ #pragma warning(disable:4706) // assignment within conditional expression @@ -47,12 +51,10 @@ HENV wxDatabase::hEnv = 0; int wxDatabase::refCount = 0; -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxDatabase, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxQueryCol, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxQueryField, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxRecordSet, wxObject) -#endif wxDatabase::wxDatabase(void) { @@ -1835,4 +1837,4 @@ bool wxQueryField::IsDirty(void) { #pragma warning(default:4706) // assignment within conditional expression #endif // VC++ -#endif // wxUSE_ODBC +#endif // wxUSE_OLD_ODBC