no prototype for realpath()
Corinna Vinschen
vinschen@redhat.com
Mon Nov 18 12:20:00 GMT 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20131118/b7c3a3cc/attachment.sig>
More information about the Newlib
mailing list