summaryrefslogtreecommitdiffstats
path: root/Modules/regexpr.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-23 22:55:58 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-23 22:55:58 (GMT)
commit88661e8f41eff20c232c8e2e3da0b8c2443b43a7 (patch)
tree0ab094a876ea78f4fa004ac8bdddf42d0f11b73a /Modules/regexpr.c
parentfb0df944cab9f43b14a976c8ff52533e833b36d7 (diff)
downloadcpython-88661e8f41eff20c232c8e2e3da0b8c2443b43a7.zip
cpython-88661e8f41eff20c232c8e2e3da0b8c2443b43a7.tar.gz
cpython-88661e8f41eff20c232c8e2e3da0b8c2443b43a7.tar.bz2
Subtle Windows changes
Diffstat (limited to 'Modules/regexpr.c')
-rw-r--r--Modules/regexpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/regexpr.c b/Modules/regexpr.c
index 841f500..6d6bb0f 100644
--- a/Modules/regexpr.c
+++ b/Modules/regexpr.c
@@ -35,7 +35,7 @@ from GNU regexp.
#include <stdlib.h>
#include <string.h>
#else
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_MSC_VER)
/* Don't mess around, use the standard headers */
#include <stdlib.h>
#include <string.h>
@@ -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;