We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f9d0fb commit d4aacd3Copy full SHA for d4aacd3
Modules/_ctypes/_ctypes_test.c
@@ -1,6 +1,11 @@
1
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
2
#define Py_LIMITED_API 0x030d0000
3
4
+// On Windows, Py_LIMITED_API requires Py_BUILD_CORE to not attempt linking the
5
+// stdlib extension to python3.lib (which fails). Then Python.h undefines
6
+// Py_BUILD_CORE when Py_LIMITED_API is defined.
7
+#define Py_BUILD_CORE
8
+
9
#include <Python.h>
10
11
#include <stdio.h> // printf()
0 commit comments