Skip to content

Commit f471f4b

Browse files
committed
Adjust tests for nogil
1 parent f6d1e06 commit f471f4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/_testlimitedcapi/version.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* Test version macros in the limited API */
22

3-
#define Py_LIMITED_API 0x030E0000 // Added in 3.14
3+
#include "pyconfig.h" // Py_GIL_DISABLED
4+
#ifndef Py_GIL_DISABLED
5+
# define Py_LIMITED_API 0x030e0000 // Added in 3.14
6+
#endif
47

58
#include "parts.h"
69
#include "clinic/version.c.h"

0 commit comments

Comments
 (0)