Fix compatibility with Python 2.7

This commit is contained in:
Lars Immisch
2015-05-10 01:02:10 +00:00
parent d28b117c22
commit 750140c278
+3
View File
@@ -20,6 +20,9 @@
#define PyLong_Check PyInt_Check
#define PyLong_AS_LONG PyInt_AS_LONG
#endif
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 7
#define PyLong_AS_LONG PyInt_AS_LONG
#endif
#include <alsa/asoundlib.h>
#include <stdio.h>