diff options
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/process_impl.cxx | 5 | ||||
-rw-r--r-- | sal/osl/w32/process.cxx | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sal/osl/unx/process_impl.cxx b/sal/osl/unx/process_impl.cxx index d28f46d44138..b63f222ec15f 100644 --- a/sal/osl/unx/process_impl.cxx +++ b/sal/osl/unx/process_impl.cxx @@ -191,6 +191,11 @@ oslProcessError SAL_CALL osl_getCommandArg (sal_uInt32 nArg, rtl_uString ** strC return (result); } +int SAL_CALL osl_areCommandArgsSet (void) +{ + return (g_command_args.m_nCount > 0); +} + /*************************************** osl_setCommandArgs(). **************************************/ diff --git a/sal/osl/w32/process.cxx b/sal/osl/w32/process.cxx index 3dd0e77d57fc..25f4e58be7e4 100644 --- a/sal/osl/w32/process.cxx +++ b/sal/osl/w32/process.cxx @@ -374,6 +374,12 @@ oslProcessError SAL_CALL osl_getCommandArg( sal_uInt32 nArg, rtl_uString **strCo /***************************************************************************/ +int SAL_CALL osl_areCommandArgsSet(void) +{ + return (g_command_args.m_nCount > 0); +} + + void SAL_CALL osl_setCommandArgs (int argc, char ** argv) { osl_acquireMutex (*osl_getGlobalMutex()); |