sb118: additional main -> SAL_MAIN adaptions (to ensure osl_setCommandArgs is called)
This commit is contained in:
parent
eeca9dafb7
commit
6a6313957d
1 changed files with 2 additions and 9 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue