python/ext/aubio-types.h: define PATH_MAX if needed
authorPaul Brossier <piem@piem.org>
Mon, 27 Feb 2017 12:23:49 +0000 (13:23 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 27 Feb 2017 12:23:49 +0000 (13:23 +0100)
python/ext/aubio-types.h

index 4fab6bd..26f8b1d 100644 (file)
 #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)