[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] hash.h: cygwin has no <stdint.h>
From: |
Dave Denholm |
Subject: |
Re: [gnugo-devel] hash.h: cygwin has no <stdint.h> |
Date: |
06 Aug 2003 11:14:39 +0100 |
Arend Bayer <address@hidden> writes:
> Hi,
>
> > The subject says it, fixed by this patch.
>
> > I am not sure how many OSses lack an <stdint.h> and
> > whether we need a configure test for this.
>
> Exactly. We will just not use it, and use "int" instead of "uint32_t",
> as the latter is not always available.
>
but the former is of some random size..?
Wouldn't it be better to create a gg_int.h which ensures that uint32_t
etc is provided, either by including <stdint.h> if there is one,
or creating some itself ?
Or safer, perhaps, to have gg_uint32_t which is typedefed to uint32_t
if there is one, or to unsigned int (with checks that int is indeed 32 bits)
Unfortunately, I'm not sure standard c lets you ask if a typename is known,
which makes it a little hard to test. (eg there may not be a header called
stdint.h, yet including stdio.h might make these types appear anyway.
dd
--
Dave Denholm <address@hidden> http://www.esmertec.com
Re: [gnugo-devel] hash.h: cygwin has no <stdint.h>, Jens Yllman, 2003/08/06