src/aubio_priv.h: define PATH_MAX if needed
[aubio.git] / src / aubio_priv.h
index b25c934..8f55260 100644 (file)
@@ -24,8 +24,8 @@
  * This file is for inclusion from _within_ the library only.
  */
 
-#ifndef _AUBIO__PRIV_H
-#define _AUBIO__PRIV_H
+#ifndef AUBIO_PRIV_H
+#define AUBIO_PRIV_H
 
 /*********************
  *
@@ -67,7 +67,7 @@
 #ifdef HAVE_ACCELERATE
 #define HAVE_ATLAS 1
 #include <Accelerate/Accelerate.h>
-#elif HAVE_ATLAS_CBLAS_H
+#elif defined(HAVE_ATLAS_CBLAS_H)
 #define HAVE_ATLAS 1
 #include <atlas/cblas.h>
 #else
@@ -193,6 +193,10 @@ typedef enum {
 #endif
 #define TWO_PI     (PI*2.)
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 /* aliases to math.h functions */
 #if !HAVE_AUBIO_DOUBLE
 #define EXP        expf
@@ -285,4 +289,4 @@ typedef enum {
 #define UNUSED
 #endif
 
-#endif /* _AUBIO__PRIV_H */
+#endif /* AUBIO_PRIV_H */