[haiku-commits] Re: haiku: hrev48158 - headers/posix

  • From: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 30 Oct 2014 00:41:46 +0100 (CET)

> Paweł Dziepak <pdziepak@xxxxxxxxxxx> hat am 30. Oktober 2014 um 00:35
> geschrieben:
> 
> 
> 2014-10-30 0:21 GMT+01:00 <zooey@xxxxxxxxxxxxxxx>:
> 
[ ... ]
> > +/* for compatibility, pull in functions declared in strings.h */
> > +#include <strings.h>
> >
> 
> Other C libraries usually use macros like _BSD_SOURCE to deal with things
> like that and that would be the perfect solution. However, IIRC we don't
> really use feature macros and since we got away with mixing all standards
> and extensions to standards for so long it probably isn't a high priority
> thing to start using them now.

In this case, I doubt using _GNU_SOURCE or anything similar would help much.
Glibc doesn't protect strcasecmp and friends at all in string.h, so I reckon
many ports will simply include it and expect things to work as it does on Linux.

cheers,
    Oliver

Other related posts: