diff --git a/Modules/_decimal/libmpdec/io.c b/Modules/_decimal/libmpdec/io.c index a45a429dbf1d39..099d3c857cf9e9 100644 --- a/Modules/_decimal/libmpdec/io.c +++ b/Modules/_decimal/libmpdec/io.c @@ -39,7 +39,7 @@ #include "constants.h" #include "memory.h" #include "typearith.h" -#include "io.h" +#include "mpio.h" /* This file contains functions for decimal <-> string conversions, including diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c index 593f9f5e03a5b3..808a835fcf79b9 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.c +++ b/Modules/_decimal/libmpdec/mpdecimal.c @@ -54,7 +54,7 @@ #if defined(_MSC_VER) - #define ALWAYS_INLINE __forceinline + #define ALWAYS_INLINE extern __forceinline #elif defined(LEGACY_COMPILER) #define ALWAYS_INLINE #undef inline diff --git a/Modules/_decimal/libmpdec/io.h b/Modules/_decimal/libmpdec/mpio.h similarity index 100% rename from Modules/_decimal/libmpdec/io.h rename to Modules/_decimal/libmpdec/mpio.h diff --git a/Modules/_winapi.c b/Modules/_winapi.c index edc6cf4adbb495..c9b0049decc883 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -147,7 +147,7 @@ overlapped_dealloc(OverlappedObject *self) /*[clinic input] module _winapi -class _winapi.Overlapped "OverlappedObject *" "&OverlappedType" +class _winapi.Overlapped "OverlappedObject *" "&WinApiOverlappedType" [clinic start generated code]*/ /*[clinic end generated code: output=da39a3ee5e6b4b0d input=c13d3f5fd1dabb84]*/ @@ -295,7 +295,7 @@ static PyMemberDef overlapped_members[] = { {NULL} }; -PyTypeObject OverlappedType = { +PyTypeObject WinApiOverlappedType = { PyVarObject_HEAD_INIT(NULL, 0) /* tp_name */ "_winapi.Overlapped", /* tp_basicsize */ sizeof(OverlappedObject), @@ -341,7 +341,7 @@ new_overlapped(HANDLE handle) { OverlappedObject *self; - self = PyObject_New(OverlappedObject, &OverlappedType); + self = PyObject_New(OverlappedObject, &WinApiOverlappedType); if (!self) return NULL; self->handle = handle; @@ -1517,7 +1517,7 @@ PyInit__winapi(void) PyObject *d; PyObject *m; - if (PyType_Ready(&OverlappedType) < 0) + if (PyType_Ready(&WinApiOverlappedType) < 0) return NULL; m = PyModule_Create(&winapi_module); @@ -1525,7 +1525,7 @@ PyInit__winapi(void) return NULL; d = PyModule_GetDict(m); - PyDict_SetItemString(d, "Overlapped", (PyObject *) &OverlappedType); + PyDict_SetItemString(d, "Overlapped", (PyObject *) &WinApiOverlappedType); /* constants */ WINAPI_CONSTANT(F_DWORD, CREATE_NEW_CONSOLE);