ref: 4fe62ba2966e3d5bc55fa10ec9decfc5d702cce3
parent: a34168558b7c280ce10c1cfe7c28c09227dc8ca3
author: Paul Brossier <[email protected]>
date: Mon Dec 30 14:48:19 EST 2013
src/aubio_priv.h: use ifdef for macros that can be undefined
--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -33,9 +33,7 @@
*
*/
-#if 1 //HAVE_CONFIG_H
#include "config.h"
-#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
@@ -46,23 +44,23 @@
#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