Paul Eggert <egg...@cs.ucla.edu> writes:

> +2011-02-08  stdlib          Unless the random_r module is also used, this
> +                            module no longer guarantees that the following 
> are
> +                            defined: struct random_data, RAND_MAX, random_r,
> +                            srandom_r, initstate_r, setstate_r.
> +

This feels a bit surprising -- usually including a gnulib header module
should make it POSIX compliant, but if stdlib.h is missing RAND_MAX it
wouldn't be a POSIX compliant header replacer.  Have I missed
discussions of changing the gnulib policy here?

(The reason I added struct random_data detection to stdlib.h was IIRC
that I only needed the struct and not the functions, so pulling in the
entire functions would be wasteful for me.)

/Simon

Reply via email to