changeset 16278:0872da28238e

random_r: Use common idioms. * lib/random_r.c: Include <stdlib.h> first.
author Bruno Haible <bruno@clisp.org>
date Thu, 12 Jan 2012 22:55:13 +0100
parents 58a55a7ffba8
children 11a41c8839e3
files ChangeLog lib/random_r.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-01-12  Bruno Haible  <bruno@clisp.org>
 
+	random_r: Use common idioms.
+	* lib/random_r.c: Include <stdlib.h> first.
+
 	random_r: Override incompatible API on AIX, OSF/1.
 	* lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
 	Override the system function if REPLACE_RANDOM_R is 1.
--- a/lib/random_r.c
+++ b/lib/random_r.c
@@ -57,10 +57,12 @@
    below.  */
 #define _GL_ARG_NONNULL(params)
 
+/* Specification.  */
+#include <stdlib.h>
+
 #include <errno.h>
 #include <limits.h>
 #include <stddef.h>
-#include <stdlib.h>
 #include <stdint.h>