diff --git a/dbaccess/source/ui/dlg/odbcconfig.cxx b/dbaccess/source/ui/dlg/odbcconfig.cxx index 1f27f2408f17..a837b85399ac 100644 --- a/dbaccess/source/ui/dlg/odbcconfig.cxx +++ b/dbaccess/source/ui/dlg/odbcconfig.cxx @@ -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 ). + +#define ULONG ODBC_ULONG +#include +#undef ULONG +#undef BOOL + #include #include #include