From: Vadim Zeitlin Date: Thu, 8 Mar 2007 14:57:42 +0000 (+0000) Subject: include wx/thread.h in debug build which is needed after last change X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f89919f5e9c80195007ebc3480f3fe4c133d5505 include wx/thread.h in debug build which is needed after last change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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