Thanks to visit codestin.com Credit goes to github.com
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 81eefa7 commit c84545fCopy full SHA for c84545f
1 file changed
pythoncapi_compat.h
@@ -1939,7 +1939,8 @@ PyLongWriter_Finish(PyLongWriter *writer)
1939
static inline FILE* Py_fopen(PyObject *path, const char *mode)
1940
{
1941
#if 0x030400A2 <= PY_VERSION_HEX && !defined(PYPY_VERSION)
1942
- extern FILE* _Py_fopen_obj(PyObject *path, const char *mode);
+ PyAPI_FUNC(FILE*) _Py_fopen_obj(PyObject *path, const char *mode);
1943
+
1944
return _Py_fopen_obj(path, mode);
1945
#else
1946
FILE *f;
@@ -2109,7 +2110,8 @@ PyConfig_Get(const char *name)
2109
2110
return Py_NewRef(value);
2111
}
2112
- extern const PyConfig* _Py_GetConfig(void);
2113
+ PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
2114
2115
const PyConfig *config = _Py_GetConfig();
2116
void *member = (char *)config + spec->offset;
2117
switch (spec->type) {
0 commit comments