diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-10-07 07:45:10 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-10-07 07:59:14 +0300 |
commit | 1691752dd29d661552700d9bcac5d3a3953fb91a (patch) | |
tree | 9d00ce644407c938936fe34ed1c9946c08245f64 /sal/osl/all | |
parent | 68669491ade83c395144b66a4f65cd7720f76a55 (diff) |
When DISABLE_DYNLOADING don't even provide any module loading/unloading API
Will then cause compilation errors where they are used, which will be
noticed and taken care of. (The code chanaged to either use direct
linking instead, when it makes sense, or to just bypass the
functionality that requires dynamic loading.)
Much better than waiting until run-time to notice where dynamic
loading is attempted.
Change-Id: Ib0cb5a2524b5c63f8e27670e7d72e37ce2a8e6e9
Diffstat (limited to 'sal/osl/all')
-rw-r--r-- | sal/osl/all/loadmodulerelative.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/osl/all/loadmodulerelative.cxx b/sal/osl/all/loadmodulerelative.cxx index f3ea7bfe3509..6b7cf0e43b17 100644 --- a/sal/osl/all/loadmodulerelative.cxx +++ b/sal/osl/all/loadmodulerelative.cxx @@ -43,6 +43,8 @@ extern "C" { +#ifndef DISABLE_DYNLOADING + oslModule SAL_CALL osl_loadModuleRelative( oslGenericFunction const baseModule, rtl_uString * const relativePath, sal_Int32 const mode) @@ -67,6 +69,8 @@ oslModule SAL_CALL osl_loadModuleRelative( return ::osl_loadModule(abs.pData, mode); } +#endif // !DISABLE_DYNLOADING + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |