closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)

This commit is contained in:
Benjamin Peterson 2018-09-12 12:06:42 -07:00 • committed by GitHub
parent 019f0a0cb8
commit e502451781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 33 additions and 31 deletions

View file

@ -245,7 +245,7 @@ EVP_hexdigest(EVPobject *self, PyObject *unused)
EVP_MD_CTX_free(temp_ctx);
return _Py_strhex((const char *)digest, digest_size);
return _Py_strhex((const char *)digest, (Py_ssize_t)digest_size);
}
PyDoc_STRVAR(EVP_update__doc__,

View file

@ -1170,6 +1170,6 @@ PyTypeObject PyWindowsConsoleIO_Type = {
0, /* tp_finalize */
};
PyAPI_DATA(PyObject *) _PyWindowsConsoleIO_Type = (PyObject*)&PyWindowsConsoleIO_Type;
PyObject * _PyWindowsConsoleIO_Type = (PyObject*)&PyWindowsConsoleIO_Type;
#endif /* MS_WINDOWS */

View file

@ -488,8 +488,8 @@ PyOS_AfterFork(void)
#ifdef MS_WINDOWS
/* defined in fileutils.c */
PyAPI_FUNC(void) _Py_time_t_to_FILE_TIME(time_t, int, FILETIME *);
PyAPI_FUNC(void) _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *,
void _Py_time_t_to_FILE_TIME(time_t, int, FILETIME *);
void _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *,
ULONG, struct _Py_stat_struct *);
#endif