Commit b244d075 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix compilation error under Windows

parent bf009f0b
...@@ -610,7 +610,7 @@ file_watchdog(void *unused) ...@@ -610,7 +610,7 @@ file_watchdog(void *unused)
PyLockStatus st; PyLockStatus st;
PY_TIMEOUT_T timeout; PY_TIMEOUT_T timeout;
const int MAXDATA = 1024; #define MAXDATA 1024
char buf1[MAXDATA], buf2[MAXDATA]; char buf1[MAXDATA], buf2[MAXDATA];
char *data = buf1, *old_data = buf2; char *data = buf1, *old_data = buf2;
Py_ssize_t data_len, old_data_len = -1; Py_ssize_t data_len, old_data_len = -1;
...@@ -667,6 +667,7 @@ file_watchdog(void *unused) ...@@ -667,6 +667,7 @@ file_watchdog(void *unused)
/* The only way out */ /* The only way out */
PyThread_release_lock(watchdog.running); PyThread_release_lock(watchdog.running);
#undef MAXDATA
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment