src/aubio_priv.h: use if HAVE_AUBIO_DOUBLE, defined in types.h
authorPaul Brossier <piem@piem.org>
Wed, 11 May 2016 23:21:32 +0000 (01:21 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 11 May 2016 23:21:32 +0000 (01:21 +0200)
src/aubio_priv.h

index 5dd8f25..90853b9 100644 (file)
@@ -198,7 +198,7 @@ typedef enum {
 #endif
 
 /* aliases to math.h functions */
-#ifndef HAVE_AUBIO_DOUBLE
+#if !HAVE_AUBIO_DOUBLE
 #define EXP        expf
 #define COS        cosf
 #define SIN        sinf
@@ -226,7 +226,7 @@ typedef enum {
 #define ROUND(x)   FLOOR(x+.5)
 
 /* aliases to complex.h functions */
-#if defined(HAVE_AUBIO_DOUBLE) || !defined(HAVE_COMPLEX_H) || defined(WIN32)
+#if HAVE_AUBIO_DOUBLE || !defined(HAVE_COMPLEX_H) || defined(WIN32)
 /* mingw32 does not know about c*f functions */
 #define EXPC      cexp
 /** complex = CEXPC(complex) */