Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f49a1cb

Browse filesBrowse files
authored
[mypyc] Fix wheel build for cp313-win (#18560)
Sync `pythoncapi_compat.h` with latest fix from python/pythoncapi-compat#137. Ref: #18535 (comment)
1 parent c08719d commit f49a1cb
Copy full SHA for f49a1cb

File tree

1 file changed

+4
-2
lines changed
Filter options

1 file changed

+4
-2
lines changed

‎mypyc/lib-rt/pythoncapi_compat.h

Copy file name to clipboardExpand all lines: mypyc/lib-rt/pythoncapi_compat.h
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,8 @@ 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);
1943+
19431944
return _Py_fopen_obj(path, mode);
19441945
#else
19451946
FILE *f;
@@ -2109,7 +2110,8 @@ PyConfig_Get(const char *name)
21092110
return Py_NewRef(value);
21102111
}
21112112

2112-
extern const PyConfig* _Py_GetConfig(void);
2113+
PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
2114+
21132115
const PyConfig *config = _Py_GetConfig();
21142116
void *member = (char *)config + spec->offset;
21152117
switch (spec->type) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.