From a8c3c673eaec987e9fe47123f60e5f9d34a4e93f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 27 Mar 2013 11:35:40 +0200 Subject: Use instead of -DLIBO_FEATURE_* Change-Id: Idc198beb6d759dbe3bad6ea58d896c1555b4cc0f --- desktop/source/app/app.cxx | 8 +++++--- desktop/source/app/cmdlineargs.cxx | 4 +++- desktop/source/app/officeipcthread.cxx | 11 ++++++----- desktop/source/app/userinstall.cxx | 4 +++- desktop/source/deployment/registry/help/dp_help.cxx | 5 +++-- 5 files changed, 20 insertions(+), 12 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 6a3e3deddfc5..1f57c2e41455 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + #include "sal/config.h" #include @@ -1387,7 +1389,7 @@ int Desktop::Main() CommandLineArgs& rCmdLineArgs = GetCommandLineArgs(); -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP OUString aUnknown( rCmdLineArgs.GetUnknown() ); if ( !aUnknown.isEmpty() ) { @@ -1452,7 +1454,7 @@ int Desktop::Main() RTL_LOGFILE_CONTEXT_TRACE( aLog, "desktop (lo119109) Desktop::Main -> Lockfile" ); m_xLockfile.reset(new Lockfile); -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP if ( !rCmdLineArgs.IsHeadless() && !rCmdLineArgs.IsInvisible() && !rCmdLineArgs.IsNoLockcheck() && !m_xLockfile->check( Lockfile_execWarning )) { @@ -1539,7 +1541,7 @@ int Desktop::Main() */ Application::GetDefaultDevice(); -#ifdef LIBO_FEATURE_DESKTOP +#ifndef DISABLE_EXTENSIONS // Check if bundled or shared extensions were added /removed // and process those extensions (has to be done before checking // the extension dependencies! diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index b8cf15302128..aded2492b5e4 100644 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + #include #include #include @@ -442,7 +444,7 @@ bool CommandLineArgs::InterpretCommandLineParameter( const ::rtl::OUString& aArg { m_nologo = true; } -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_MULTIUSER_ENVIRONMENT else if ( oArg == "nolockcheck" ) { m_nolockcheck = true; diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index 071e2bb851ef..bcade3172b1f 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include #include "app.hxx" #include "officeipcthread.hxx" @@ -59,7 +60,7 @@ namespace { static char const ARGUMENT_PREFIX[] = "InternalIPC::Arguments"; -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP static char const SEND_ARGUMENTS[] = "InternalIPC::SendArguments"; static char const PROCESSING_DONE[] = "InternalIPC::ProcessingDone"; @@ -105,7 +106,7 @@ namespace desktop namespace { -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP class Parser: public CommandLineArgs::Supplier { public: @@ -451,7 +452,7 @@ void OfficeIPCThread::RequestsCompleted( int nCount ) OfficeIPCThread::Status OfficeIPCThread::EnableOfficeIPCThread() { -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP ::osl::MutexGuard aGuard( GetMutex() ); if( pGlobalOfficeIPCThread.is() ) @@ -613,7 +614,7 @@ OfficeIPCThread::Status OfficeIPCThread::EnableOfficeIPCThread() void OfficeIPCThread::DisableOfficeIPCThread(bool join) { -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP osl::ClearableMutexGuard aMutex( GetMutex() ); if( pGlobalOfficeIPCThread.is() ) @@ -673,7 +674,7 @@ void OfficeIPCThread::SetReady( void OfficeIPCThread::execute() { -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP do { osl::StreamPipe aStreamPipe; diff --git a/desktop/source/app/userinstall.cxx b/desktop/source/app/userinstall.cxx index ec5c5ca09a37..2a0aba9b8b5d 100644 --- a/desktop/source/app/userinstall.cxx +++ b/desktop/source/app/userinstall.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + #include "sal/config.h" #include "userinstall.hxx" @@ -116,7 +118,7 @@ namespace desktop { } } -#ifdef LIBO_FEATURE_DESKTOP +#if HAVE_FEATURE_DESKTOP static osl::FileBase::RC copy_recursive( const rtl::OUString& srcUnqPath, const rtl::OUString& dstUnqPath) { FileBase::RC err; diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index 5c660fb3d393..35c798e52b35 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include #include "dp_help.hrc" #include "dp_backend.h" @@ -31,7 +32,7 @@ #include "uno/current_context.hxx" #include "unotools/pathoptions.hxx" -#ifdef LIBO_FEATURE_HELP +#if HAVE_FEATURE_HELP #include #include #endif @@ -386,7 +387,7 @@ void BackendImpl::implProcessHelp( data.dataUrl = xPackage->getURL(); if (!package->extensionContainsCompiledHelp()) { -#ifdef LIBO_FEATURE_HELP +#if HAVE_FEATURE_HELP const OUString sHelpFolder = createFolder(OUString(), xCmdEnv); data.dataUrl = sHelpFolder; -- cgit