From: Antoine Pitrou Date: Tue, 4 Oct 2011 11:00:02 +0000 (+0200) Subject: Fix compilation error under Windows X-Git-Tag: v3.3.0a1~1339 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b244d075fbb6894385e0f3cb451471051a80473b;p=thirdparty%2FPython%2Fcpython.git Fix compilation error under Windows --- diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 3002840f64dd..06f7f2e8c3a3 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -610,7 +610,7 @@ file_watchdog(void *unused) PyLockStatus st; PY_TIMEOUT_T timeout; - const int MAXDATA = 1024; +#define MAXDATA 1024 char buf1[MAXDATA], buf2[MAXDATA]; char *data = buf1, *old_data = buf2; Py_ssize_t data_len, old_data_len = -1; @@ -667,6 +667,7 @@ file_watchdog(void *unused) /* The only way out */ PyThread_release_lock(watchdog.running); +#undef MAXDATA } static void