summaryrefslogtreecommitdiffstats
path: root/Modules/overlapped.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-04-01 19:37:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-04-01 19:37:41 (GMT)
commitccdbe80a56d052aaffa1c1c9df62f63c0baa548b (patch)
tree8204b6847cc1c1775b605d7ef25699792938ae2b /Modules/overlapped.c
parent3ee147ffbb944646843a7310da7139cbfb985ce0 (diff)
downloadcpython-ccdbe80a56d052aaffa1c1c9df62f63c0baa548b.zip
cpython-ccdbe80a56d052aaffa1c1c9df62f63c0baa548b.tar.gz
cpython-ccdbe80a56d052aaffa1c1c9df62f63c0baa548b.tar.bz2
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.
Diffstat (limited to 'Modules/overlapped.c')
-rw-r--r--Modules/overlapped.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/overlapped.c b/Modules/overlapped.c
index 8e6d397..f85e5bc 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"