[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stdlib: provide random_data for mingw
From: |
Simon Josefsson |
Subject: |
Re: stdlib: provide random_data for mingw |
Date: |
Sun, 26 Oct 2008 13:19:10 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Simon Josefsson wrote:
>> gl_CHECK_NEXT_HEADERS([stdlib.h])
>> AC_CHECK_TYPES([struct random_data], [], [], [[#include <stdlib.h>]])
>> + if test $ac_cv_type_struct_random_data = yes; then
>> + HAVE_STRUCT_RANDOM_DATA=1
>> + else
>> + HAVE_STRUCT_RANDOM_DATA=0
>> + fi
>> ])
>
> Thanks. I'm adding this tweak to match the usual coding style: Initialize the
> HAVE_STRUCT_RANDOM_DATA variable to 1, and set it to 0 when we see it's
> missing. This looks pointless in this case, but is a useful convention when a
> HAVE_* variable needs to be set to 0 at various places, for various possible
> reasons (see e.g. REPLACE_CLOSE and gl_REPLACE_CLOSE).
I agree, thanks.
/Simon