From 68a3fc924772da2b32e508133c171766dc68a424 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 12 Sep 2009 00:06:19 +0200 Subject: [PATCH] src/aubio_priv.h: add missing CEIL, rename TRUNC to ROUND, use FLOOR(x+.5) to avoid -std=c99 needed by roundf --- src/aubio_priv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 314a72af..ff43e4a1 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -131,7 +131,8 @@ typedef enum { #define LOG10 log10f #define LOG logf #define FLOOR floorf -#define TRUNC truncf +#define CEIL ceilf +#define ROUND(x) FLOOR(x_.5) /* aliases to complex.h functions */ #if !defined(HAVE_COMPLEX_H) || defined(WIN32) -- 2.26.2