]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/db.h
* Removed CocoaInternalIdle()
[wxWidgets.git] / include / wx / db.h
index c21998ed6498ff3de839921f0dfc32f7c091384b..8bff95b46e676aeb55a9d9733e8a0699fcd577e9 100644 (file)
@@ -43,7 +43,7 @@
 
 #include "wx/version.h"
 
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma interface "db.h"
 #endif
 
         #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