>From 89b335be47327cbfb9e6da6b0cc0c2c07bdf7e4c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 May 2017 21:38:07 +0200 Subject: [PATCH 01/16] dirent-c++-tests: Update. * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13. (rewinddir): Declare, missing since 2011-09-13. (dirfd): Declare, missing since 2010-03-08. --- ChangeLog | 7 +++++++ tests/test-dirent-c++.cc | 20 ++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4605c8e..4ef1fca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-05-05 Bruno Haible + + dirent-c++-tests: Update. + * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13. + (rewinddir): Declare, missing since 2011-09-13. + (dirfd): Declare, missing since 2010-03-08. + 2017-05-04 Bruno Haible argp: Fix mistake in 2017-04-23 commit. diff --git a/tests/test-dirent-c++.cc b/tests/test-dirent-c++.cc index 6292102..83ad3e8 100644 --- a/tests/test-dirent-c++.cc +++ b/tests/test-dirent-c++.cc @@ -24,14 +24,30 @@ #include "signature.h" +#if GNULIB_TEST_OPENDIR +SIGNATURE_CHECK (GNULIB_NAMESPACE::opendir, DIR *, (const char *)); +#endif + +#if GNULIB_TEST_READDIR +SIGNATURE_CHECK (GNULIB_NAMESPACE::readdir, struct dirent *, (DIR *)); +#endif + +#if GNULIB_TEST_REWINDDIR +SIGNATURE_CHECK (GNULIB_NAMESPACE::rewinddir, void, (DIR *)); +#endif + +#if GNULIB_TEST_CLOSEDIR SIGNATURE_CHECK (GNULIB_NAMESPACE::closedir, int, (DIR *)); +#endif + +#if GNULIB_TEST_DIRFD +SIGNATURE_CHECK (GNULIB_NAMESPACE::dirfd, int, (DIR *)); +#endif #if GNULIB_TEST_FDOPENDIR SIGNATURE_CHECK (GNULIB_NAMESPACE::fdopendir, DIR *, (int)); #endif -SIGNATURE_CHECK (GNULIB_NAMESPACE::opendir, DIR *, (const char *)); - #if GNULIB_TEST_SCANDIR SIGNATURE_CHECK (GNULIB_NAMESPACE::scandir, int, (const char *, struct dirent ***, -- 2.7.4