mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-06-01 10:57:01 +00:00
Fix compatibility with Python 2.7
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user