X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a497618a568bfdd1059e3f51b560a98fd25b1003..b581c7e649a5366ee1953efe82c7d8c7f14637b4:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index 30f8556094..91f822b736 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -96,6 +96,10 @@ DbList WXDLLEXPORT *PtrBegDbList = 0; extern wxList TablesInUse; #endif +#ifdef __MWERKS__ +#define stricmp _stricmp +#define strnicmp _strnicmp +#endif // SQL Log defaults to be used by GetDbConnection enum sqlLog SQLLOGstate = sqlLogOFF; @@ -774,8 +778,8 @@ void wxDB::Close(void) tiu = (CstructTablesInUse *)pNode->Data(); if (tiu->pDb == this) { - sprintf(s, "(%-20s) tableID:[%6lu] pDb:[%lu]", tiu->tableName,tiu->tableID,tiu->pDb); - sprintf(s2,"Orphaned found using pDb:[%lu]",this); + sprintf(s, "(%-20s) tableID:[%6lu] pDb:[%p]", tiu->tableName,tiu->tableID,tiu->pDb); + sprintf(s2,"Orphaned found using pDb:[%p]",this); wxMessageBox (s,s2); } pNode = pNode->Next(); @@ -783,7 +787,8 @@ void wxDB::Close(void) #endif // Copy the error messages to a global variable - for (int i = 0; i < DB_MAX_ERROR_HISTORY; i++) + int i; + for (i = 0; i < DB_MAX_ERROR_HISTORY; i++) strcpy(DBerrorList[i],errorList[i]); } // wxDB::Close()