This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Windows makefiles
[perl5.git] / win32 / runperl.c
index 6f84c60..85fd831 100644 (file)
@@ -1,9 +1,21 @@
-/* Say NO to CPP! Hallelujah! */
+#include "EXTERN.h"
+#include "perl.h"
 
-__declspec(dllimport) int RunPerl(int argc, char **argv, char **env, void *ios);
+#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;
+
+#endif
 
 int
 main(int argc, char **argv, char **env)
 {
-    return RunPerl(argc, argv, env, (void*)0);
+    return RunPerl(argc, argv, env);
 }
+
+