compilation error with gnutls 2.12.10 a,d mingw-w64
simon at josefsson.org
Mon Oct 10 11:25:15 CEST 2011
Nikos Mavrogiannopoulos <nmav at gnutls.org> writes:
> On 10/08/2011 12:22 PM, Vincent Torri wrote:
>> I cross compile on linux to Windows using mingw-w64. uint8_t is used in
>> cli.c but it's not defined. I don't understand why unsigned char is not
> uint8_t is a C99 type defined in stdint.h. I've reverted it to
> unsigned char, because gnutls is supposed to compile with C89
> compilers as well (I don't know whether this is really true today).
Gnulib provides the C99 stdint types even for C89 compilers. I think we
should feel free to use uint*_t everywhere.
src/cli.c does not include stdint.h though. Could it be that simple?
I've pushed a patch. Vincent, please try adding '#include <stdint.h>'
at the top of src/cli.c after the '#include <config.h>' line.
More information about the Gnutls-devel