diff options
| author | Stefan Behnel <scoder@users.berlios.de> | 2011-07-22 11:21:09 +0200 |
|---|---|---|
| committer | Stefan Behnel <scoder@users.berlios.de> | 2011-07-22 11:21:09 +0200 |
| commit | a1ea5ee80c9e4045bb7bb8a374382bdd1546006c (patch) | |
| tree | 888437416c2d2a6affa66d6e6b418fe3ef9e95ed | |
| parent | f7c0961be293a2bc2a688b70e5eacc4a0b5d3718 (diff) | |
| download | python-lxml-a1ea5ee80c9e4045bb7bb8a374382bdd1546006c.tar.gz | |
fix C compiler warnings
| -rw-r--r-- | src/lxml/etree_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxml/etree_defs.h b/src/lxml/etree_defs.h index 7fa088f4..bee03ce0 100644 --- a/src/lxml/etree_defs.h +++ b/src/lxml/etree_defs.h @@ -36,13 +36,13 @@ # define PyString_GET_SIZE(s) PyBytes_GET_SIZE(s) # define PyString_AS_STRING(s) PyBytes_AS_STRING(s) #else +#if PY_VERSION_HEX < 0x02060000 # define PyBytes_CheckExact(o) PyString_CheckExact(o) # define PyBytes_Check(o) PyString_Check(o) # define PyBytes_FromStringAndSize(s, len) PyString_FromStringAndSize(s, len) # define PyBytes_FromFormat PyString_FromFormat # define PyBytes_GET_SIZE(s) PyString_GET_SIZE(s) # define PyBytes_AS_STRING(s) PyString_AS_STRING(s) -#if PY_VERSION_HEX < 0x02060000 /* we currently only use three parameters - MSVC can't compile (s, ...) */ # define PyUnicode_FromFormat(s, a, b) (NULL) #endif |
