8000 PyConfig_Get() is also available on Python 3.8 (#156) · python/pythoncapi-compat@6c77b6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c77b6b

Browse files
authored
PyConfig_Get() is also available on Python 3.8 (#156)
1 parent a49e0fb commit 6c77b6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythoncapi_compat.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ static inline int Py_fclose(FILE *file)
19911991
#endif
19921992

19931993

1994-
#if 0x03090000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030E0000 && !defined(PYPY_VERSION)
1994+
#if 0x03080000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030E0000 && !defined(PYPY_VERSION)
19951995
static inline PyObject*
19961996
PyConfig_Get(const char *name)
19971997
{
@@ -2032,7 +2032,9 @@ PyConfig_Get(const char *name)
20322032
PYTHONCAPI_COMPAT_SPEC(module_search_paths, WSTR_LIST, "path"),
20332033
PYTHONCAPI_COMPAT_SPEC(optimization_level, UINT, _Py_NULL),
20342034
PYTHONCAPI_COMPAT_SPEC(parser_debug, BOOL, _Py_NULL),
2035+
#if 0x03090000 <= PY_VERSION_HEX
20352036
PYTHONCAPI_COMPAT_SPEC(platlibdir, WSTR, "platlibdir"),
2037+
#endif
20362038
PYTHONCAPI_COMPAT_SPEC(prefix, WSTR_OPT, "prefix"),
20372039
PYTHONCAPI_COMPAT_SPEC(pycache_prefix, WSTR_OPT, "pycache_prefix"),
20382040
PYTHONCAPI_COMPAT_SPEC(quiet, BOOL, _Py_NULL),

0 commit comments

Comments
 (0)
0