X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa33452c949f27fb1f7b7bcdc26d82ceb6aa453a..9779893b90e4ffbb036329c2411f15aff0a93295:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index c356007e1f..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; @@ -178,7 +179,7 @@ bool wxDB::Open(char *Dsn, char *Uid, char *AuthStr) RETCODE retcode; -#if wxODBC_FWD_ONLY_CURSORS +#if !wxODBC_FWD_ONLY_CURSORS // Specify that the ODBC cursor library be used, if needed. This must be // specified before the connection is made. @@ -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();