Ordering dependency between string.h and strings.h.

Bernhard Fischer rep.nop at aon.at
Sat Dec 23 14:21:10 UTC 2006


On Fri, Dec 22, 2006 at 12:32:47PM -0800, Khem Raj wrote:
>Rob Landley wrote:
>> With the december 14 nightly snapshot, building under gcc 4.1.1, if I do:
>>
>> #include <string.h>
>> #include <strings.h>
>>
>> I don't get a prototype for index() or rindex().  But if I do:
>>
>> #include <strings.h>
>> #include <string.h>
>>
>> I get both prototypes.  Why does it matter what order they're in?

Mea culpa. I did sync both files but managed not to checkin the
strings.h part, sorry. Fixed in r17065.



More information about the uClibc mailing list