summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/odbc/OFunctions.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/connectivity/source/drivers/odbc/OFunctions.cxx b/connectivity/source/drivers/odbc/OFunctions.cxx
index dbbcdc7ff7f0..cb04f307424c 100644
--- a/connectivity/source/drivers/odbc/OFunctions.cxx
+++ b/connectivity/source/drivers/odbc/OFunctions.cxx
@@ -90,6 +90,7 @@ bool LoadLibrary_ODBC3(OUString &_rPath)
if (bLoaded)
return true;
+#ifndef DISABLE_DYNLOADING
#ifdef _WIN32
_rPath = "ODBC32.DLL";
#endif
@@ -106,6 +107,7 @@ bool LoadLibrary_ODBC3(OUString &_rPath)
if ( !pODBCso )
pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
+#endif
if( !pODBCso)
return false;