diff options
Diffstat (limited to 'vcl/source/helper/svtaccessiblefactory.cxx')
-rw-r--r-- | vcl/source/helper/svtaccessiblefactory.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/helper/svtaccessiblefactory.cxx b/vcl/source/helper/svtaccessiblefactory.cxx index d999dd1eba3f..ec07912fd177 100644 --- a/vcl/source/helper/svtaccessiblefactory.cxx +++ b/vcl/source/helper/svtaccessiblefactory.cxx @@ -18,6 +18,7 @@ */ #include <config_feature_desktop.h> +#include <config_wasm_strip.h> #include <vcl/svtaccessiblefactory.hxx> #include <vcl/accessiblefactory.hxx> @@ -41,8 +42,10 @@ namespace vcl oslModule s_hAccessibleImplementationModule = nullptr; #endif #if HAVE_FEATURE_DESKTOP +#ifndef ENABLE_WASM_STRIP_ACCESSIBILITY GetSvtAccessibilityComponentFactory s_pAccessibleFactoryFunc = nullptr; #endif +#endif ::rtl::Reference< IAccessibleFactory > s_pFactory; @@ -206,6 +209,7 @@ namespace vcl { } +#ifndef ENABLE_WASM_STRIP_ACCESSIBILITY #if HAVE_FEATURE_DESKTOP #ifndef DISABLE_DYNLOADING extern "C" { static void thisModule() {} } @@ -213,6 +217,7 @@ namespace vcl extern "C" void* getSvtAccessibilityComponentFactory(); #endif #endif // HAVE_FEATURE_DESKTOP +#endif // ENABLE_WASM_STRIP_ACCESSIBILITY void AccessibleFactoryAccess::ensureInitialized() { @@ -221,6 +226,7 @@ namespace vcl ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); +#ifndef ENABLE_WASM_STRIP_ACCESSIBILITY #if HAVE_FEATURE_DESKTOP // load the library implementing the factory if (!s_pFactory) @@ -252,6 +258,7 @@ namespace vcl } } #endif // HAVE_FEATURE_DESKTOP +#endif // ENABLE_WASM_STRIP_ACCESSIBILITY if (!s_pFactory) // the attempt to load the lib, or to create the factory, failed |