This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: no prototype for realpath()


On Nov 15 12:49, Joel Sherrill wrote:
> Hi
> 
> I noticed realpath() does not have a prototype.
> 
> It looks like it should be in stdlib.h and wrapped
> by this per Linux:
>   _BSD_SOURCE || _XOPEN_SOURCE >= 500 ||
>   _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
> 
> (1) Is it OK to add to newlib's stdlib.h?

Yes.

> (2) What guards should I use?

BSD and POSIX.1-2001?  Just omit guards or add some !defined (__STRICT_ANSI__),
I guess.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpVpNnpX5xb5.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]