Jim Meyering wrote: > diff --git a/tests/test-getopt.h b/tests/test-getopt.h > index ce470c8..5c0e5b5 100644 > --- a/tests/test-getopt.h > +++ b/tests/test-getopt.h > @@ -17,6 +17,7 @@ > /* Written by Bruno Haible <br...@clisp.org>, 2009. */ > > #include <stdbool.h> > +#include "macros.h" > > /* The glibc/gnulib implementation of getopt supports setting optind = > 0, but not all other implementations do. This matters for getopt.
This is not necessary, as it's already included in tests/test-getopt-main.h, before test-getopt.h gets included. 2017-05-20 Bruno Haible <br...@clisp.org> getopt-posix tests: Remove redundant include. * tests/test-getopt.h: Don't include "macros.h". It's already included by tests/test-getopt-main.h. diff --git a/tests/test-getopt.h b/tests/test-getopt.h index 5c0e5b5..a41fdc1 100644 --- a/tests/test-getopt.h +++ b/tests/test-getopt.h @@ -17,7 +17,6 @@ /* Written by Bruno Haible <br...@clisp.org>, 2009. */ #include <stdbool.h> -#include "macros.h" /* The glibc/gnulib implementation of getopt supports setting optind = 0, but not all other implementations do. This matters for getopt.