From: Guido van Rossum Date: Thu, 23 May 1996 22:55:58 +0000 (+0000) Subject: Subtle Windows changes X-Git-Tag: v1.4b1~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88661e8f41eff20c232c8e2e3da0b8c2443b43a7;p=python Subtle Windows changes --- diff --git a/Modules/regexpr.c b/Modules/regexpr.c index 841f500d09..6d6bb0f3be 100644 --- a/Modules/regexpr.c +++ b/Modules/regexpr.c @@ -35,7 +35,7 @@ from GNU regexp. #include #include #else -#ifdef __STDC__ +#if defined(__STDC__) || defined(_MSC_VER) /* Don't mess around, use the standard headers */ #include #include @@ -912,7 +912,7 @@ regexp_t bufp; } #define INITIAL_FAILURES 128 /* initial # failure points to allocate */ -#define MAX_FAILURES 4100 /* max # of failure points before failing */ +#define MAX_FAILURES 4100L /* max # of failure points before failing */ int re_match_2(bufp, string1, size1, string2, size2, pos, regs, mstop) regexp_t bufp;