]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compilation error under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 4 Oct 2011 11:00:02 +0000 (13:00 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 4 Oct 2011 11:00:02 +0000 (13:00 +0200)
Modules/faulthandler.c

index 3002840f64dda2e754e33fcc533710aa78b9c901..06f7f2e8c3a3815087fded0adedd45ab85190199 100644 (file)
@@ -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