Skip to content

Commit a059e68

Browse files
committed
Fix for windows build
1 parent 2953fb4 commit a059e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_typeobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ typedef int (*_py_validate_type)(PyTypeObject *);
277277
// It will verify the ``ty`` through user-defined validation function ``validate``,
278278
// and if the validation is passed, it will set the ``tp_version`` as valid
279279
// tp_version_tag from the ``ty``.
280-
extern int _PyType_Validate(PyTypeObject *ty, _py_validate_type validate, unsigned int *tp_version);
281280
extern PyObject *_PyType_GetItemFromCache(PyTypeObject *type);
282-
extern PyObject *_PyType_GetItemFromCacheWithVersion(PyTypeObject *type, uint32_t *version);
281+
PyAPI_FUNC(int) _PyType_Validate(PyTypeObject *ty, _py_validate_type validate, unsigned int *tp_version);
282+
PyAPI_FUNC(PyObject *) _PyType_GetItemFromCacheWithVersion(PyTypeObject *type, uint32_t *version);
283283
extern int _PyType_CacheGetItemForSpecialization(PyTypeObject *type, PyObject *descriptor);
284284

285285
#ifdef __cplusplus

0 commit comments

Comments
 (0)