src/aubio_priv.h: use ifdef for macros that can be undefined
authorPaul Brossier <piem@piem.org>
Mon, 30 Dec 2013 23:48:19 +0000 (19:48 -0400)
committerPaul Brossier <piem@piem.org>
Mon, 30 Dec 2013 23:48:19 +0000 (19:48 -0400)
src/aubio_priv.h

index 2fb7792..197edf1 100644 (file)
@@ -33,9 +33,7 @@
  *
  */
 
-#if 1 //HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #if HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
 
 /* must be included before fftw3.h */
-#if HAVE_COMPLEX_H
+#ifdef HAVE_COMPLEX_H
 #include <complex.h>
 #endif
 
-#if HAVE_FFTW3 || HAVE_FFTW3F
+#if defined(HAVE_FFTW3) || defined(HAVE_FFTW3F)
 #include <fftw3.h>
 #endif
 
-#if HAVE_MATH_H
+#ifdef HAVE_MATH_H
 #include <math.h>
 #endif
 
-#if HAVE_STRING_H
+#ifdef HAVE_STRING_H
 #include <string.h>
 #endif
 
-#if HAVE_LIMITS_H
+#ifdef HAVE_LIMITS_H
 #include <limits.h> // for CHAR_BIT, in C99 standard
 #endif