summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-02-03 13:43:59 +0100
committersb <sb@openoffice.org>2010-02-03 13:43:59 +0100
commit6a6313957dc8b98a66cbe1a74a6952e4efb324dd (patch)
treec8720fbb82d6f2cff5a91aaf134501c6044b5b90
parenteeca9dafb71c0ff288cd9a0683fd1dcb0626baca (diff)
sb118: additional main -> SAL_MAIN adaptions (to ensure osl_setCommandArgs is called)
-rw-r--r--rsc/source/prj/gui.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/rsc/source/prj/gui.cxx b/rsc/source/prj/gui.cxx
index 6bf466348d1b..9b0bb2d3fa78 100644
--- a/rsc/source/prj/gui.cxx
+++ b/rsc/source/prj/gui.cxx
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <sal/main.h>
#include <rscrsc.hxx>
#include <rscdb.hxx>
@@ -71,15 +72,7 @@ RscVerbosity lcl_determineVerbosity( int argc, char ** argv )
return RscVerbosityNormal;
}
-#if defined( UNX ) || ( defined( OS2 ) && ( defined( CSET ) || defined ( GCC ))) || defined (WTC) || defined(ICC) || defined(__MINGW32__)
-int main ( int argc, char ** argv) {
-#else
-#if defined( MTW )
-int main ( int argc, char const ** argv) {
-#else
-int cdecl main ( int argc, char ** argv) {
-#endif
-#endif
+SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
#ifndef UNX
#ifdef CSET
atexit( ExitProgram );