]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/db.h
Added SetMin/SetMax
[wxWidgets.git] / include / wx / db.h
index 7fa3a52bc63791a9a72e5f8e67de6c9c45f17d03..8bff95b46e676aeb55a9d9733e8a0699fcd577e9 100644 (file)
         #include <windows.h>
         #include "wx/msw/winundef.h"
     #endif
-    // Use the ones from the library
     extern "C" {
+    #if defined(wxUSE_BUILTIN_IODBC) && wxUSE_BUILTIN_IODBC
+        // Use the ones from the library
+        #include "wx/isql.h"
+        #include "wx/isqlext.h"
+    #else
         #include <sql.h>
         #include <sqlext.h>
+    #endif
     }
 #endif
 
@@ -94,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