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 d85e99a..f1e4fdc 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 0494a9e..5e0b86c 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>