8000 Fix different linkage error with cp313-win · python/pythoncapi-compat@b2a32b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2a32b6

Browse files
committed
Fix different linkage error with cp313-win
1 parent 81eefa7 commit b2a32b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythoncapi_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ PyLongWriter_Finish(PyLongWriter *writer)
19391939
static inline FILE* Py_fopen(PyObject *path, const char *mode)
19401940
{
19411941
#if 0x030400A2 <= PY_VERSION_HEX && !defined(PYPY_VERSION)
1942-
extern FILE* _Py_fopen_obj(PyObject *path, const char *mode);
1942+
PyAPI_FUNC(FILE*) _Py_fopen_obj(PyObject *path, const char *mode);
19431943
return _Py_fopen_obj(path, mode);
19441944
#else
19451945
FILE *f;
@@ -2109,7 +2109,7 @@ PyConfig_Get(const char *name)
21092109
return Py_NewRef(value);
21102110
}
21112111

2112-
extern const PyConfig* _Py_GetConfig(void);
2112+
PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
21132113
const PyConfig *config = _Py_GetConfig();
21142114
void *member = (char *)config + spec->offset;
21152115
switch (spec->type) {

0 commit comments

Comments
 (0)
0