summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2010-04-16 10:09:51 +0200
committerJens-Heiner Rechtien <hr@openoffice.org>2010-04-16 10:09:51 +0200
commita3ed338f81a32ecd4ab2ee74cbed6568a458fd3a (patch)
tree09fb44afd2abcdc58a927a135418857626f716da /rsc
parent656c2a8f122c291e3f634e7eb508971e4a7e47de (diff)
parent33682d1375407c507230050b537bed0f42708457 (diff)
CWS-TOOLING: integrate CWS sb118
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/prj/gui.cxx11
-rw-r--r--rsc/source/prj/start.cxx9
2 files changed, 4 insertions, 16 deletions
diff --git a/rsc/source/prj/gui.cxx b/rsc/source/prj/gui.cxx
index 0ff0549d161f..67d86a8b35cf 100644
--- a/rsc/source/prj/gui.cxx
+++ b/rsc/source/prj/gui.cxx
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <sal/main.h>
#include <rscrsc.hxx>
#include <rscdb.hxx>
@@ -68,15 +69,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 );
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index 8b952acb75f9..a2841dd9765b 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -54,6 +54,7 @@
#endif // UNX
#include <rsctools.hxx>
#include <rscerror.h>
+#include <sal/main.h>
#include <tools/fsys.hxx>
/*************** C O D E ************************************************/
@@ -322,14 +323,8 @@ static BOOL CallRsc2( ByteString aRsc2Name,
|* Letzte Aenderung MM 05.09.91
|*
*************************************************************************/
-#if defined UNX || (defined OS2 && (defined CSET || defined GCC )) || defined WTC || defined MTW || defined ICC || defined(__MINGW32__)
-int main ( int argc, char ** argv)
+SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
{
-#else
-int cdecl main ( int argc, char ** argv)
-{
-#endif
-
BOOL bPrePro = TRUE;
BOOL bResFile = TRUE;
BOOL bHelp = FALSE;