From 410a157f8b8271051a5a48d03347be90609bd0b9 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 27 Feb 2017 13:23:49 +0100 Subject: [PATCH] python/ext/aubio-types.h: define PATH_MAX if needed --- python/ext/aubio-types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/ext/aubio-types.h b/python/ext/aubio-types.h index 4fab6bd3..26f8b1d6 100644 --- 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) -- 2.11.0