shithub: aubio

Download patch

ref: dff2dedb88af52dd136942819dbab4c2d636cd8a
parent: 7d7bf8f8b186a7cade458d0e9ac9771aa3122b31
author: Paul Brossier <piem@piem.org>
date: Sat Apr 23 16:49:50 EDT 2016

examples/utils.h: remove stdarg.h, getopt.h moved to parse_args.h, protect include with #ifdef HAVE_

--- a/examples/utils.h
+++ b/examples/utils.h
@@ -18,15 +18,25 @@
 
 */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <getopt.h>
-#include <unistd.h>
-#include <math.h>               /* for isfinite */
-#include <string.h>             /* for strcmp */
 #include <aubio.h>
+
 #include "config.h"
+
+#ifdef HAVE_STDIO_H
+#include <stdio.h>              // for fprintf
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>             // for exit
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>             // for access
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>               // for isfinite
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>             // for strcmp
+#endif
 
 #ifdef HAVE_C99_VARARGS_MACROS
 #ifdef HAVE_DEBUG