X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac99a98ff0a859e84c2c3e668194341459cd1cd0..848bc5ba1888bfa9fcbf5719b68a155ece28d7f6:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index 4f9cd1dc41..c9a7b9ae63 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -92,10 +92,11 @@ DbList WXDLLEXPORT *PtrBegDbList = 0; -#if __WXDEBUG__ > 0 +#ifdef __WXDEBUG__ extern wxList TablesInUse; #endif + // SQL Log defaults to be used by GetDbConnection enum sqlLog SQLLOGstate = sqlLogOFF; @@ -763,7 +764,7 @@ void wxDB::Close(void) // There should be zero Ctable objects still connected to this db object assert(nTables == 0); -#if __WXDEBUG__ > 0 +#ifdef __WXDEBUG__ CstructTablesInUse *tiu; wxNode *pNode; pNode = TablesInUse.First();