From e617fd0bf84f80de8fc40a1ea86e96bd2848493a Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 29 May 2003 09:11:18 +0000 Subject: * win32/win32.c (_CRTIMP): redefine _CRTIMP on MinGW. * configure.in: remove '-D__USE_CRTIMP' from XCFLAGS on MinGW. * win32/win32.c (NtMakeCmdVector): handle quotes only if not instring. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 1441a25c2b..7fa962f15b 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1213,7 +1213,7 @@ NtMakeCmdVector (char *cmdline, char ***vec, int InputCmd) // we can remove them. // - if (InputCmd && (base[0] == '\"' && base[len-1] == '\"')) { + if (InputCmd && !instring && (base[0] == '\"' && base[len-1] == '\"')) { char *p; base++; len -= 2; @@ -1225,7 +1225,7 @@ NtMakeCmdVector (char *cmdline, char ***vec, int InputCmd) } } } - else if (InputCmd && (base[0] == '\'' && base[len-1] == '\'')) { + else if (InputCmd && !instring && (base[0] == '\'' && base[len-1] == '\'')) { base++; len -= 2; } @@ -1562,7 +1562,8 @@ typedef struct { #endif } ioinfo; -#if !defined _CRTIMP +#if !defined _CRTIMP || defined __MINGW32__ +#undef _CRTIMP #define _CRTIMP __declspec(dllimport) #endif -- cgit v1.2.3