master
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7#undef __MSVCRT_VERSION__
8#define _UCRT
9
10#include <corecrt_startup.h>
11#include <internal.h>
12#include <stdlib.h>
13#include <new.h>
14
15int __cdecl __wgetmainargs(int *argc, wchar_t ***argv, wchar_t ***env, int DoWildCard, _startupinfo *StartInfo)
16{
17 _initialize_wide_environment();
18 _configure_wide_argv(DoWildCard ? _crt_argv_expanded_arguments : _crt_argv_unexpanded_arguments);
19 *argc = *__p___argc();
20 *argv = *__p___wargv();
21 *env = *__p__wenviron();
22 _set_new_mode(StartInfo->newmode);
23 return 0;
24}
25int __cdecl (*__MINGW_IMP_SYMBOL(__wgetmainargs))(int *, wchar_t ***, wchar_t ***, int, _startupinfo *) = __wgetmainargs;