projects
/
aubio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/aubio_priv.h: if compiling with -std=c99, use defines for strnlen and floorf
[aubio.git]
/
src
/
aubio_priv.h
diff --git
a/src/aubio_priv.h
b/src/aubio_priv.h
index
90853b9
..
982b5fc
100644
(file)
--- a/
src/aubio_priv.h
+++ b/
src/aubio_priv.h
@@
-289,4
+289,12
@@
typedef enum {
#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 */