gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation error with gnutls 2.12.10 a,d mingw-w64


From: Simon Josefsson
Subject: Re: compilation error with gnutls 2.12.10 a,d mingw-w64
Date: Mon, 10 Oct 2011 11:25:15 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

Nikos Mavrogiannopoulos <address@hidden> 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
>> used.
>
> Hi,
>  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.

/Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]