From: Victor Stinner Date: Fri, 1 Apr 2016 19:37:41 +0000 (+0200) Subject: asyncio: sync overlapped.c with GitHub X-Git-Tag: v3.6.0a1~283^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccdbe80a56d052aaffa1c1c9df62f63c0baa548b;p=thirdparty%2FPython%2Fcpython.git asyncio: sync overlapped.c with GitHub On Python 3.3, use aliases: * PyMem_RawMalloc = PyMem_Malloc * PyMem_RawFree = PyMem_Free These aliases are not need in Python 3.5, but this change makes synchronization of code base simpler. --- diff --git a/Modules/overlapped.c b/Modules/overlapped.c index 8e6d397e2277..f85e5bc73641 100644 --- a/Modules/overlapped.c +++ b/Modules/overlapped.c @@ -23,6 +23,12 @@ # define T_POINTER T_ULONGLONG #endif +/* Compatibility with Python 3.3 */ +#if PY_VERSION_HEX < 0x03040000 +# define PyMem_RawMalloc PyMem_Malloc +# define PyMem_RawFree PyMem_Free +#endif + #define F_HANDLE F_POINTER #define F_ULONG_PTR F_POINTER #define F_DWORD "k"