libc_hidden_proto in headers

Bernd Schmidt bernds_cb1 at
Fri Jun 6 15:41:36 UTC 2008

I think the transition to putting libc_hidden_proto into headers is a 
good thing, but I'm not entirely happy about the implementation in 
string.h: duplicating the ifdef tree and having to keep two different 
locations in sync seems like a recipe for errors.  So, IMO we should put 
every libc_hidden_proto next to the function declaration.

How does the patch below look?  For now I've left in the unifdef step, 
but it's probably unnecessary if we decide to go this way.

This footer brought to you by insane German lawmakers.
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hidden-proto.diff
Type: text/x-patch
Size: 15595 bytes
Desc: not available
Url : 

More information about the uClibc mailing list