blob: 9653637ee8e1a4bb0af5f4e94a09f836725d1763 [file] [log] [blame]
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <internal.h>
/* Define __getmainargs() function via msvcrt20.dll __getmainargs() function */
_CRTIMP void __cdecl __msvcrt20_getmainargs(int *argc, char ***argv, char ***envp, int expand_wildcards, int newmode);
int __cdecl __getmainargs(int *argc, char ***argv, char ***envp, int expand_wildcards, _startupinfo *startup_info)
{
/*
* msvcrt20.dll's __getmainargs() function terminates process on error.
* If it returns back to the caller then it means that it succeeded.
*/
__msvcrt20_getmainargs(argc, argv, envp, expand_wildcards, startup_info->newmode);
return 0;
}
int __cdecl (*__MINGW_IMP_SYMBOL(__getmainargs))(int *, char ***, char ***, int, _startupinfo *) = __getmainargs;