diff --git a/pythoncapi_compat.h b/pythoncapi_compat.h index 4d28846..e534c1c 100644 --- a/pythoncapi_compat.h +++ b/pythoncapi_compat.h @@ -1939,7 +1939,8 @@ PyLongWriter_Finish(PyLongWriter *writer) static inline FILE* Py_fopen(PyObject *path, const char *mode) { #if 0x030400A2 <= PY_VERSION_HEX && !defined(PYPY_VERSION) - extern FILE* _Py_fopen_obj(PyObject *path, const char *mode); + PyAPI_FUNC(FILE*) _Py_fopen_obj(PyObject *path, const char *mode); + return _Py_fopen_obj(path, mode); #else FILE *f; @@ -2109,7 +2110,8 @@ PyConfig_Get(const char *name) return Py_NewRef(value); } - extern const PyConfig* _Py_GetConfig(void); + PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void); + const PyConfig *config = _Py_GetConfig(); void *member = (char *)config + spec->offset; switch (spec->type) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy