From dff2dedb88af52dd136942819dbab4c2d636cd8a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 23 Apr 2016 20:49:50 +0200 Subject: [PATCH] examples/utils.h: remove stdarg.h, getopt.h moved to parse_args.h, protect include with #ifdef HAVE_ --- examples/utils.h | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/examples/utils.h b/examples/utils.h index 93b0e18b..901029cb 100644 --- a/examples/utils.h +++ b/examples/utils.h @@ -18,16 +18,26 @@ */ -#include -#include -#include -#include -#include -#include /* for isfinite */ -#include /* for strcmp */ #include + #include "config.h" +#ifdef HAVE_STDIO_H +#include // for fprintf +#endif +#ifdef HAVE_STDLIB_H +#include // for exit +#endif +#ifdef HAVE_UNISTD_H +#include // for access +#endif +#ifdef HAVE_MATH_H +#include // for isfinite +#endif +#ifdef HAVE_STRING_H +#include // for strcmp +#endif + #ifdef HAVE_C99_VARARGS_MACROS #ifdef HAVE_DEBUG #define debug(...) fprintf (stderr, __VA_ARGS__) -- 2.11.0