diff options
Diffstat (limited to 'src/grep/lib/w32-initialize-main.c')
-rw-r--r-- | src/grep/lib/w32-initialize-main.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/grep/lib/w32-initialize-main.c b/src/grep/lib/w32-initialize-main.c new file mode 100644 index 0000000..a7eaedd --- /dev/null +++ b/src/grep/lib/w32-initialize-main.c @@ -0,0 +1,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; + } +} + |