diff --git a/src/common/db.cpp b/src/common/db.cpp index a881c22c4c..be855ba25c 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -62,6 +62,8 @@ wxChar const *SQL_LOG_FILENAME = wxT("sqllog.txt"); wxChar const *SQL_CATALOG_FILENAME = wxT("catalog.txt"); #ifdef __WXDEBUG__ + #include "wx/thread.h" + extern wxList TablesInUse; extern wxCriticalSection csTablesInUse; #endif diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index 2596771ee7..fff7942cae 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -28,11 +28,6 @@ #endif #ifdef DBDEBUG_CONSOLE -#if wxUSE_IOSTREAMH - #include -#else - #include -#endif #include "wx/ioswrap.h" #endif @@ -44,21 +39,12 @@ #include "wx/dbtable.h" -#ifdef __UNIX__ -// The HPUX preprocessor lines below were commented out on 8/20/97 -// because macros.h currently redefines DEBUG and is unneeded. -// # ifdef HPUX -// # include -// # endif -# ifdef LINUX -# include -# endif -#endif - ULONG lastTableID = 0; #ifdef __WXDEBUG__ + #include "wx/thread.h" + wxList TablesInUse; wxCriticalSection csTablesInUse; #endif