X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=win32%2Frunperl.c;h=85fd8317593fd833e378cea1b5b2abdb232fd93d;hb=1a43333d9bf51719e5b1f8ad083714177a89e6b7;hp=07e2bd6f835eb7ded328f11bcf5d848f0d47a18e;hpb=137443ea0a858c43f5a720730cac6209a7d41948;p=p5sagit%2Fp5-mst-13.2.git diff --git a/win32/runperl.c b/win32/runperl.c index 07e2bd6..85fd831 100644 --- a/win32/runperl.c +++ b/win32/runperl.c @@ -1,18 +1,21 @@ -#include -#include +#include "EXTERN.h" +#include "perl.h" -#ifndef _DLL -extern WIN32_IOSUBSYSTEM win32stdio; -#endif +#ifdef __GNUC__ + +/* Mingw32 defaults to globing command line + * This is inconsistent with other Win32 ports and + * seems to cause trouble with passing -DXSVERSION=\"1.6\" + * So we turn it off like this: + */ +int _CRT_glob = 0; -extern int RunPerl(int argc, char **argv, char **env, void *iosubsystem); +#endif int main(int argc, char **argv, char **env) { -#ifdef _DLL - return (RunPerl(argc, argv, env, NULL)); -#else - return (RunPerl(argc, argv, env, &win32stdio)); -#endif + return RunPerl(argc, argv, env); } + +