]> Savannah Git Hosting - gnulib.git/commit
rand: Use the usual patterns for overriding a function.
authorBruno Haible <bruno@clisp.org>
Tue, 21 Nov 2023 14:25:24 +0000 (15:25 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 21 Nov 2023 14:25:24 +0000 (15:25 +0100)
commit3d8b5be6ab1e37e069aab9d75d787c08422f1ee2
treec20f1c3e5c8809bcd1ae5b5c969dd6c9e2bd535d
parent7a38f30f925db7d486460c18df41413f3c7ef74b
rand: Use the usual patterns for overriding a function.

* lib/stdlib.in.h (RAND_MAX): Override also if module 'rand' is present.
(rand): New declaration.
* m4/stdlib_h.m4 (gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize GNULIB_RAND.
(gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RAND.
* modules/stdlib (Makefile.am): Substitute GNULIB_RAND and REPLACE_RAND.
ChangeLog
lib/stdlib.in.h
m4/stdlib_h.m4
modules/stdlib