ref: 023aa3209a1edcb68c5cacaa5c041d744a5bc2bd
parent: 0e70ef97a3fc256f3f1fd1481023a9b997965a13
author: Paul Brossier <piem@piem.org>
date: Fri May 13 10:25:59 EDT 2016
src/aubio_priv.h: if compiling with -std=c99, use defines for strnlen and floorf
--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -289,4 +289,12 @@
#define UNUSED
#endif
+/* are we using gcc -std=c99 ? */
+#if defined(__STRICT_ANSI__)
+#define strnlen(a,b) MIN(strlen(a),b)
+#if !HAVE_AUBIO_DOUBLE
+#define floorf floor
+#endif
+#endif /* __STRICT_ANSI__ */
+
#endif /* AUBIO_PRIV_H */