projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a7764
)
python/ext/aubio-types.h: define PATH_MAX if needed
author
Paul Brossier
<piem@piem.org>
Mon, 27 Feb 2017 12:23:49 +0000
(13:23 +0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 27 Feb 2017 12:23:49 +0000
(13:23 +0100)
python/ext/aubio-types.h
patch
|
blob
|
history
diff --git
a/python/ext/aubio-types.h
b/python/ext/aubio-types.h
index
4fab6bd
..
26f8b1d
100644
(file)
--- a/
python/ext/aubio-types.h
+++ b/
python/ext/aubio-types.h
@@
-46,6
+46,14
@@
#define AUBIO_NPY_SMPL_CHR "f"
#endif
+#ifndef PATH_MAX
+#ifdef MAX_PATH
+#define PATH_MAX MAX_PATH
+#else
+#define PATH_MAX 1024
+#endif
+#endif
+
// compat with Python < 2.6
#ifndef Py_TYPE
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)