]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
asyncio: sync overlapped.c with GitHub
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Apr 2016 19:37:41 +0000 (21:37 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Apr 2016 19:37:41 +0000 (21:37 +0200)
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.

Modules/overlapped.c

index 8e6d397e22772919bef484aefd5a4dcb5d0a8bcc..f85e5bc73641fb3c6341073a743552dc9a605815 100644 (file)
 #  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"