This is the mail archive of the cygwin mailing list for the Cygwin 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]

Using rand_r and -std=c99 with gcc


Hi,
If I try to compile a C program which uses rand_r with gcc 4.5.3, with
-std=c99, I get

warning: implicit declaration of function 'rand_r'.

Google gave me http://cygwin.com/ml/cygwin/2009-05/msg00417.html and
http://sourceware.org/ml/newlib/2007/msg00800.html, which explains why
this happens, but these messages are 3 years old.  Additionally,
http://linux.die.net/man/3/rand_r suggests that rand_r is c99.  Are
there plans to update stdlib.h to account for c99?  If I look through
the http://linux.die.net/man pages and figure out which things are c99
and submit a patch, will it get checked in?

Thanks.

-Jason

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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