Added SQLTCHAR for non-Windows platforms, and added missing

wxFputs to wxchar.h


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-09-19 10:59:14 +00:00
parent f6aa2b2cfb
commit c27be5db0b
3 changed files with 9 additions and 3 deletions

View File

@@ -99,6 +99,11 @@ typedef double SDOUBLE;
typedef unsigned int UINT; typedef unsigned int UINT;
#define ULONG UDWORD #define ULONG UDWORD
// Not available in iODBC
#ifndef __WXMSW__
typedef UCHAR SQLTCHAR;
#endif
#ifndef wxODBC_FWD_ONLY_CURSORS #ifndef wxODBC_FWD_ONLY_CURSORS
#define wxODBC_FWD_ONLY_CURSORS 1 #define wxODBC_FWD_ONLY_CURSORS 1
#endif #endif

View File

@@ -594,6 +594,7 @@
#define wxFgetchar fgetchar #define wxFgetchar fgetchar
#define wxFgets fgets #define wxFgets fgets
#define wxFputc fputc #define wxFputc fputc
#define wxFputs fputs
#define wxFputchar fputchar #define wxFputchar fputchar
#define wxFprintf fprintf #define wxFprintf fprintf
#define wxFscanf fscanf #define wxFscanf fscanf

View File

@@ -1408,18 +1408,18 @@ void wxDb::Close(void)
#ifdef __WXDEBUG__ #ifdef __WXDEBUG__
wxTablesInUse *tiu; wxTablesInUse *tiu;
wxNode *pNode; wxNode *pNode;
pNode = TablesInUse.First(); pNode = TablesInUse.GetFirst();
wxString s,s2; wxString s,s2;
while (pNode) while (pNode)
{ {
tiu = (wxTablesInUse *)pNode->Data(); tiu = (wxTablesInUse *)pNode->GetData();
if (tiu->pDb == this) if (tiu->pDb == this)
{ {
s.Printf(wxT("(%-20s) tableID:[%6lu] pDb:[%p]"), tiu->tableName,tiu->tableID,tiu->pDb); s.Printf(wxT("(%-20s) tableID:[%6lu] pDb:[%p]"), tiu->tableName,tiu->tableID,tiu->pDb);
s2.Printf(wxT("Orphaned found using pDb:[%p]"),this); s2.Printf(wxT("Orphaned found using pDb:[%p]"),this);
wxLogDebug (s.c_str(),s2.c_str()); wxLogDebug (s.c_str(),s2.c_str());
} }
pNode = pNode->Next(); pNode = pNode->GetNext();
} }
#endif #endif