summaryrefslogtreecommitdiffstats
path: root/src/grep/lib/w32-initialize-main.c
blob: a7eaedd4751a6b242b8889eb8a6684941d86ddd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "config.h"
#include <corecrt_startup.h>


void w32_initialize_main(int *pcArgs, char ***ppapszArgs)
{
    if (!getenv("KMK_GREP_NO_EXPANSION"))
    {
        _configure_narrow_argv(_crt_argv_expanded_arguments);
        *pcArgs = __argc;
        *ppapszArgs = __argv;
    }
}