[PATCH] Add simple versions of random() and srandom()
Corinna Vinschen
vinschen@redhat.com
Wed Mar 23 19:30:00 GMT 2016
On Mar 23 13:43, Joel Sherrill wrote:
>
>
> On 3/23/2016 12:45 PM, Yaakov Selkowitz wrote:
> >On 2016-03-23 12:38, Joel Sherrill wrote:
> >>--- a/newlib/libc/include/stdlib.h
> >>+++ b/newlib/libc/include/stdlib.h
> >>@@ -226,6 +226,12 @@ unsigned short *
> >> _VOID _EXFUN(srand48,(long));
> >> _VOID _EXFUN(_srand48_r,(struct _reent *, long));
> >> #endif /* __SVID_VISIBLE || __XSI_VISIBLE */
> >>+#if __SVID_VISIBLE || __XSI_VISIBLE >= 4 || __BSD_VISIBLE
> >
> >Please review my previous comment on this.
>
> Is this the desired guard?
>
> #if __MISC_VISIBLE || __XSI_VISIBLE >= 500
#if __MISC_VISIBLE || __XSI_VISIBLE >= 4 seems more correct, but
I have no idea how to get this into the documentation.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160323/2b19a8ae/attachment.sig>
More information about the Newlib
mailing list