]> git.saurik.com Git - wxWidgets.git/commitdiff
Added SQLTCHAR for non-Windows platforms, and added missing
authorJulian Smart <julian@anthemion.co.uk>
Fri, 19 Sep 2003 10:59:14 +0000 (10:59 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 19 Sep 2003 10:59:14 +0000 (10:59 +0000)
wxFputs to wxchar.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/db.h
include/wx/wxchar.h
src/common/db.cpp

index 225563e3f6cafd50b6c93060c2e64a8dd6198b57..8bff95b46e676aeb55a9d9733e8a0699fcd577e9 100644 (file)
@@ -99,6 +99,11 @@ typedef double SDOUBLE;
 typedef unsigned int UINT;
 #define ULONG UDWORD
 
+// Not available in iODBC
+#ifndef __WXMSW__
+typedef UCHAR SQLTCHAR;
+#endif
+
 #ifndef wxODBC_FWD_ONLY_CURSORS
 #define wxODBC_FWD_ONLY_CURSORS 1
 #endif
index 4afd51e5e7b5bad8e9d21198e8bb21ff58c0357b..6dadaecf49bea4306685d0d2df75557a7b3d9acf 100644 (file)
         #define  wxFgetchar  fgetchar
         #define  wxFgets     fgets
         #define  wxFputc     fputc
+        #define  wxFputs     fputs
         #define  wxFputchar  fputchar
         #define  wxFprintf   fprintf
         #define  wxFscanf    fscanf
index 539c92960985b7120dc9c74fecaa4507c3747ae8..a68deb2b1d573c54085e0e96aa9c768f44856882 100644 (file)
@@ -1408,18 +1408,18 @@ void wxDb::Close(void)
 #ifdef __WXDEBUG__
     wxTablesInUse *tiu;
     wxNode *pNode;
-    pNode = TablesInUse.First();
+    pNode = TablesInUse.GetFirst();
     wxString s,s2;
     while (pNode)
     {
-        tiu = (wxTablesInUse *)pNode->Data();
+        tiu = (wxTablesInUse *)pNode->GetData();
         if (tiu->pDb == this)
         {
             s.Printf(wxT("(%-20s)     tableID:[%6lu]     pDb:[%p]"), tiu->tableName,tiu->tableID,tiu->pDb);
             s2.Printf(wxT("Orphaned found using pDb:[%p]"),this);
             wxLogDebug (s.c_str(),s2.c_str());
         }
-        pNode = pNode->Next();
+        pNode = pNode->GetNext();
     }
 #endif