summaryrefslogtreecommitdiff
path: root/psycopg/python.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-13 02:24:33 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-21 04:02:13 +0000
commit4635c2aa4f41c1fe05ec4d5d562f89eb3c4f9d27 (patch)
tree613ef878ec3e4961373e9fee40fc8a3ecbb7e21b /psycopg/python.h
parent9b30147341323b912d207f329663791a816f96be (diff)
downloadpsycopg2-4635c2aa4f41c1fe05ec4d5d562f89eb3c4f9d27.tar.gz
Import structmember/stringobject headers from python.h.
stringobject is not to be imported with Python 3.
Diffstat (limited to 'psycopg/python.h')
-rw-r--r--psycopg/python.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/psycopg/python.h b/psycopg/python.h
index 6faa5b9..b514c2c 100644
--- a/psycopg/python.h
+++ b/psycopg/python.h
@@ -27,6 +27,9 @@
#define PSYCOPG_PYTHON_H 1
#include <structmember.h>
+#if PY_MAJOR_VERSION < 3
+#include <stringobject.h>
+#endif
#if PY_VERSION_HEX < 0x02040000
# error "psycopg requires Python >= 2.4"