Mercurial > hg > octave-nkf > gnulib-hg
changeset 16035:88def2ddf509
maint.mk: also prohibit inclusion of dirent.h without use
* top/maint.mk (sc_prohibit_dirent_without_use): New rule.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sat, 05 Nov 2011 17:34:09 +0100 |
parents | 3e9ac47be013 |
children | 1fda91604648 |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-05 Jim Meyering <meyering@redhat.com> + + maint.mk: also prohibit inclusion of dirent.h without use + * top/maint.mk (sc_prohibit_dirent_without_use): New rule. + 2011-11-05 Bruno Haible <bruno@clisp.org> ldexpl tests: Avoid test failure on MSVC 9.
--- a/top/maint.mk +++ b/top/maint.mk @@ -625,6 +625,16 @@ re='\<($(_stddef_syms_re))\>' \ $(_sc_header_without_use) +_de1 = dirfd|(close|(fd)?open|read|rewind|seek|tell)dir(64)?(_r)? +_de2 = (versionsort|struct dirent|getdirentries|alphasort|scandir(at)?)(64)? +_de3 = MAXNAMLEN|DIR|ino_t|d_ino|d_fileno|d_namlen +_dirent_syms_re = $(_de1)|$(_de2)|$(_de3) +# Prohibit the inclusion of dirent.h without an actual use. +sc_prohibit_dirent_without_use: + h='dirent.h' \ + re='\<($(_dirent_syms_re))\>' \ + $(_sc_header_without_use) + # Prohibit the inclusion of verify.h without an actual use. sc_prohibit_verify_without_use: @h='verify.h' \