diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-01 08:21:00 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-01 08:21:00 +0200 |
commit | 0cab2d1f98b4814e87b930193e5316897d70d047 (patch) | |
tree | 4c6e217787561cc9517b6ff63191aefba69de225 /psutil/_psutil_common.h | |
parent | 043d5737d6eeab96aedd97f3a2fef35797304677 (diff) | |
download | psutil-0cab2d1f98b4814e87b930193e5316897d70d047.tar.gz |
#1040: add replacement for PyUnicode_DecodeFSDefaultAndSize on Python 2; also get rid of the pstuil_ prefix and use the original Python names
Diffstat (limited to 'psutil/_psutil_common.h')
-rw-r--r-- | psutil/_psutil_common.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/psutil/_psutil_common.h b/psutil/_psutil_common.h index 84916d2d..0507458a 100644 --- a/psutil/_psutil_common.h +++ b/psutil/_psutil_common.h @@ -8,5 +8,7 @@ PyObject* AccessDenied(void); PyObject* NoSuchProcess(void); -PyObject* psutil_PyUnicode_DecodeFSDefault(char *s); -PyObject* psutil_PyUnicode_DecodeFSDefaultAndSize(char *s, Py_ssize_t size); +#if PY_MAJOR_VERSION < 3 +PyObject* PyUnicode_DecodeFSDefault(char *s); +PyObject* PyUnicode_DecodeFSDefaultAndSize(char *s, Py_ssize_t size); +#endif
\ No newline at end of file |