Skip to content

Commit 8ec187a

Browse files
committed
Fix overlapped.c build on Windows
1 parent d7507dd commit 8ec187a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/overlapped.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
/* XXX check overflow and DWORD <-> Py_ssize_t conversions
88
Check itemsize */
99

10-
#include "Python.h"
10+
#ifndef Py_BUILD_CORE_BUILTIN
11+
# define Py_BUILD_CORE_MODULE 1
12+
#endif
1113

14+
#include "Python.h"
1215

1316
#define WINDOWS_LEAN_AND_MEAN
1417
#include <winsock2.h>

0 commit comments

Comments
 (0)