Add some DISABLE_DYNLOADING ifdefs to osl/w32, as for unx

Lots of things will have to be tweaked to build core statically for
Windows. This is just one small isolated and fairly obvious trivial
commit. (Assuming that in the disable-dynloading case, for Windows we
want to drop the same dynamic library loading functions in osl as for
Unixish systems.)

Change-Id: Ica0a00d7a3d5b85e5eb933ebd5722824fbf5deeb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197503
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
This commit is contained in:
Tor Lillqvist
2026-01-17 20:58:40 +01:00
parent 8e6eef100e
commit 7b1bb740a7
+4
View File
@@ -32,6 +32,8 @@
#include <systools/win32/extended_max_path.hxx>
#include <vector>
#ifndef DISABLE_DYNLOADING
/*
under WIN32, we use the void* oslModule
as a WIN32 HANDLE (which is also a 32-bit value)
@@ -104,6 +106,8 @@ oslModule osl_loadModuleRelativeAscii(
return osl_loadModuleRelative(baseModule, OUString::createFromAscii(relativePath).pData, mode);
}
#endif // !DISABLE_DYNLOADING
sal_Bool SAL_CALL
osl_getModuleHandle(rtl_uString *pModuleName, oslModule *pResult)
{