X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/146174a91a192983720a158796dc066226ad0e55..290a3bf65322c9a56f56522def856dd0aa0fed8d:/win32/runperl.c diff --git a/win32/runperl.c b/win32/runperl.c index 85fd831..b76f8ba 100644 --- a/win32/runperl.c +++ b/win32/runperl.c @@ -6,9 +6,14 @@ /* 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: + * So we turn it off like this, but only when compiling + * perlmain.c: perlmainst.c is linked into the same executable + * as win32.c, which also does this, so we mustn't do it twice + * otherwise we get a multiple definition error. */ +#ifndef PERLDLL int _CRT_glob = 0; +#endif #endif