+ #if defined(__WINDOWS__) && ( defined(HAVE_W32API_H) || defined(__BORLANDC__) )
+ #include <windows.h>
+ #include "wx/msw/winundef.h"
+ #endif
+ extern "C" {
+ #if defined(wxUSE_BUILTIN_IODBC) && wxUSE_BUILTIN_IODBC
+ // Use the ones from the library
+ #include "wx/isql.h"
+ #include "wx/isqlext.h"
+ // Not available in v2.x of iODBC
+ #ifndef __WXMSW__
+ #if wxUSE_UNICODE
+ typedef wxChar SQLTCHAR;
+ #else
+ typedef UCHAR SQLTCHAR;
+ #endif
+ #endif
+ #else
+ #if defined( __WXMOTIF__ ) && defined( __VMS )
+ // solves a type definition mismatch between IODBC and MOTIF on OpenVMS
+ #define BOOL int
+ #endif
+ #include <sql.h>
+ #include <sqlext.h>
+ //#if wxUSE_UNICODE
+ // #include <sqlucode.h>
+ //#endif
+ #if defined( __WXMOTIF__ ) && defined( __VMS )
+ #undef BOOL
+ #endif
+ #endif
+ }
+#endif
+
+#if wxUSE_UNICODE
+#define SQL_C_WXCHAR SQL_C_WCHAR
+#else
+#define SQL_C_WXCHAR SQL_C_CHAR