Workaround for <odbc/sqltypes.h> ULONG and BOOL screwup

This commit is contained in:
Tor Lillqvist 2011-01-25 20:54:24 +02:00
parent 7e857dc781
commit 03bee2a75b

View file

@ -30,6 +30,16 @@
#include "precompiled_dbaccess.hxx"
#include "odbcconfig.hxx"
// Include odbc/sqltypes.h specifically and early to handle its nasty
// re-definitions of BOOL and typedef of ULONG that clash horribly
// with the solar.h stuff (which itself already clashes with <windows.h>).
#define ULONG ODBC_ULONG
#include <odbc/sqltypes.h>
#undef ULONG
#undef BOOL
#include <rtl/bootstrap.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>