]> Savannah Git Hosting - gnulib.git/commitdiff
random_r: Use common idioms.
authorBruno Haible <bruno@clisp.org>
Thu, 12 Jan 2012 21:55:13 +0000 (22:55 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 12 Jan 2012 21:55:13 +0000 (22:55 +0100)
* lib/random_r.c: Include <stdlib.h> first.

ChangeLog
lib/random_r.c

index d85e99aac7b1800fbd9ed24a66a108fe6ea5f49c..f1e4fdcf97c38939af99b1d3bb83635802487e14 100644 (file)
--- 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.
index 0494a9eb721b5cc33339b96d718cb1f96d9e4827..5e0b86ca4e87a229f4118d748b63355e368e4cc9 100644 (file)
    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>