summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-07 13:41:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-07 13:41:32 +0200
commit57ecf341a42866c8ed207768603a379173961c71 (patch)
treea200ecf9ecb2b5428e53f7af0bc999a3d76aac46 /vcl
parentb154c61766b5a5e3f597bad63d799912e5950a02 (diff)
Clean up ImplSVMainHook declaration
Change-Id: I51d7eac6160a3c3abc96733fa30fdcbb41bb5509
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/svmain.hxx30
-rw-r--r--vcl/osx/salinst.cxx1
-rw-r--r--vcl/source/app/svmain.cxx4
-rw-r--r--vcl/source/app/svmainhook.cxx4
4 files changed, 36 insertions, 3 deletions
diff --git a/vcl/inc/svmain.hxx b/vcl/inc/svmain.hxx
new file mode 100644
index 000000000000..6ea93fa4d5dc
--- /dev/null
+++ b/vcl/inc/svmain.hxx
@@ -0,0 +1,30 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_VCL_INC_SVMAIN_HXX
+#define INCLUDED_VCL_INC_SVMAIN_HXX
+
+#include <sal/config.h>
+
+// #i47888# allow for alternative initialization as required for e.g. MacOSX
+bool ImplSVMainHook( int* );
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index fce9e95b1178..4414bef1cfff 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -46,6 +46,7 @@
#include "print.h"
#include "impbmp.hxx"
#include "salimestatus.hxx"
+#include "svmain.hxx"
#include <comphelper/processfactory.hxx>
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index f0277eaa2760..f5b05fef40ac 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -52,6 +52,7 @@
#include "salinst.hxx"
#include "salwtype.hxx"
#include "svdata.hxx"
+#include "svmain.hxx"
#include "dbggui.hxx"
#include "accmgr.hxx"
#include "idlemgr.hxx"
@@ -180,9 +181,6 @@ int ImplSVMain()
int SVMain()
{
- // #i47888# allow for alternative initialization as required for e.g. MacOSX
- extern bool ImplSVMainHook( int* );
-
int nRet;
if( !Application::IsConsoleOnly() && ImplSVMainHook( &nRet ) )
return nRet;
diff --git a/vcl/source/app/svmainhook.cxx b/vcl/source/app/svmainhook.cxx
index 1f2ba0d47daf..4974cff72057 100644
--- a/vcl/source/app/svmainhook.cxx
+++ b/vcl/source/app/svmainhook.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <svmain.hxx>
+
#ifndef MACOSX
// MacOSX implementation of ImplSVMainHook is in osx/salinst.cxx