summaryrefslogtreecommitdiff
path: root/win32/runperl.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1997-11-28 22:39:39 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1997-11-28 22:39:39 +0000
commit5b0d9cbecfd90628c0e955ee142f05f9b60bcf43 (patch)
treeaf50799266dd7553b6090aa7116baf1118b5c659 /win32/runperl.c
parent04dc04aa73cc58d998c1f2e8d4c3f8576eee7e49 (diff)
downloadperl-5b0d9cbecfd90628c0e955ee142f05f9b60bcf43.tar.gz
Builds completely with Mingw32, dynamic loaded extensions
don't work yet - suspect __declspec() non-implemented issues. p4raw-id: //depot/ansiperl@329
Diffstat (limited to 'win32/runperl.c')
-rw-r--r--win32/runperl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/win32/runperl.c b/win32/runperl.c
index ff0a5718ee..954460739f 100644
--- a/win32/runperl.c
+++ b/win32/runperl.c
@@ -1,8 +1,20 @@
/* Say NO to CPP! Hallelujah! */
#ifdef __GNUC__
+/*
+ * GNU C does not do __declspec()
+ */
#define __declspec(foo)
+
+/* 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
+
__declspec(dllimport) int RunPerl(int argc, char **argv, char **env, void *ios);
int