From f4c81223c2228bbc34ba7bb63cfb079f9c0bd1e2 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Sun, 8 Jun 2008 20:38:53 +0000 Subject: In string.h, move libc_hidden_proto next to the corresponding declaration. Filter them out when installing headers. Tested by building up bfin-*linux toolchains and building our copy of uClinux-dist. --- extra/scripts/install_headers.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extra/scripts') diff --git a/extra/scripts/install_headers.sh b/extra/scripts/install_headers.sh index 0d58b200a..6d73ad2c6 100755 --- a/extra/scripts/install_headers.sh +++ b/extra/scripts/install_headers.sh @@ -45,7 +45,8 @@ while read -r filename; do # NB: unifdef exits with 1 if output is not # exactly the same as input. That's ok. # Do not abort the script if unifdef "fails"! - "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" >"$2/$filename" + "$top_builddir/extra/scripts/unifdef" -UUCLIBC_INTERNAL "$1/$filename" \ + | grep -v '^libc_hidden_proto[ ]*([a-zA-Z0-9_]*)$' >"$2/$filename" fi done ) -- cgit v1.2.3