diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-10-11 22:25:59 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-10-11 22:26:51 +0100 |
commit | 5fbf3ef147046548031896b49a27a21d94efae30 (patch) | |
tree | 00710eb709a08041f80a326b909d7136347e1626 /psycopg/python.h | |
parent | ee763e0f47802232000293b3e4e33d87f7d19720 (diff) | |
parent | b61a2a34c40e9b6e8774178e553a2e81eb889f06 (diff) | |
download | psycopg2-5fbf3ef147046548031896b49a27a21d94efae30.tar.gz |
Merge branch 'fix-113' into devel
Diffstat (limited to 'psycopg/python.h')
-rw-r--r-- | psycopg/python.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/psycopg/python.h b/psycopg/python.h index 6d87fa5..f6d6be0 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -35,6 +35,11 @@ # error "psycopg requires Python >= 2.4" #endif +#if PY_VERSION_HEX < 0x02050000 +/* Function missing in Py 2.4 */ +#define PyErr_WarnEx(cat,msg,lvl) PyErr_Warn(cat,msg) +#endif + #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; #define PY_SSIZE_T_MIN INT_MIN |