summaryrefslogtreecommitdiff
path: root/psycopg/python.h
diff options
context:
space:
mode:
Diffstat (limited to 'psycopg/python.h')
-rw-r--r--psycopg/python.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/psycopg/python.h b/psycopg/python.h
index 25dbd31..c3f9a0d 100644
--- a/psycopg/python.h
+++ b/psycopg/python.h
@@ -62,6 +62,11 @@
#define PyVarObject_HEAD_INIT(x,n) PyObject_HEAD_INIT(x) n,
#endif
+/* Missing at least in Python 2.4 */
+#ifndef Py_MEMCPY
+#define Py_MEMCPY memcpy
+#endif
+
/* FORMAT_CODE_PY_SSIZE_T is for Py_ssize_t: */
#define FORMAT_CODE_PY_SSIZE_T "%" PY_FORMAT_SIZE_T "d"