summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-01-29 15:39:36 +0100
committersb <sb@openoffice.org>2010-01-29 15:39:36 +0100
commita0b4cdb08bec2ad107634bfdcbe6bb0b0f050881 (patch)
treeb28950a50e55325898242856ea000193ba378e4d /rsc
parentc5bed97b38a8e4d527f0ad9091a409ab7babd03d (diff)
sb118: additional main -> SAL_MAIN adaption (to ensure osl_setCommandArgs is called)
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/prj/start.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index df4ce12200c5..9756bce9351c 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -57,6 +57,7 @@
#endif // UNX
#include <rsctools.hxx>
#include <rscerror.h>
+#include <sal/main.h>
#include <tools/fsys.hxx>
/*************** C O D E ************************************************/
@@ -325,14 +326,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;