diff options
author | Mark Brand <mabrand@mabrand.nl> | 2010-07-29 09:15:00 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-07-29 09:15:00 (GMT) |
commit | 3643d21756a6bd9ed06a409457d6e8c93aba3b43 (patch) | |
tree | 5db858fa8e2465646101c4d5d99d5e34efabaf3b /src/sql/kernel | |
parent | 9e846d7b36124087708f08a10bb677a878875f92 (diff) | |
download | Qt-3643d21756a6bd9ed06a409457d6e8c93aba3b43.zip Qt-3643d21756a6bd9ed06a409457d6e8c93aba3b43.tar.gz Qt-3643d21756a6bd9ed06a409457d6e8c93aba3b43.tar.bz2 |
fixes for using freetds
DBNTWIN32 only if not Q_USE_SYBASE.
Workaround for RETCODE typedef conflict between ODBC and FreeTDS.
Include winsock2.h supplies SOCKET for FreeTDS.
Merge-request: 684
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/sql/kernel')
-rw-r--r-- | src/sql/kernel/qsqldatabase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp index 76bc2b0..2ab37de 100644 --- a/src/sql/kernel/qsqldatabase.cpp +++ b/src/sql/kernel/qsqldatabase.cpp @@ -60,7 +60,10 @@ #include "../drivers/oci/qsql_oci.h" #endif #ifdef QT_SQL_TDS +// conflicting RETCODE typedef between odbc and freetds +#define RETCODE DBRETCODE #include "../drivers/tds/qsql_tds.h" +#undef RETCODE #endif #ifdef QT_SQL_DB2 #include "../drivers/db2/qsql_db2.h" |