[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: |
Jens Yllman |
Subject: |
Re: [gnugo-devel] hash.h: cygwin has no <stdint.h> |
Date: |
Tue, 5 Aug 2003 22:02:57 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.1 |
Shouldn't we use autoconf/automake macros for this?
AC_CHECK_HEADERS(stdint.h)
AC_CHECK_HEADERS(sys/types.h)
I even think these are checked in some other macro. And then you use the
#ifdef HAVE_SYS_TYPES_H
#endif
construct.
Since I've not been active on gnugo for a while I have a question. What
version of autoconf/automake should we use. I personally use autoconf 2.57
and automake 1.7.6. And that is the latest in Cygwin as I use alot for
development.
Jens Yllman
> 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.
>
> Teun
>
> - on cygwin use <sys/types.h> in stead of <stdint.h>
>
> diff -u -r1.14 hash.h
> --- hash.h 4 Aug 2003 23:49:18 -0000 1.14
> +++ hash.h 5 Aug 2003 19:36:56 -0000
> @@ -21,7 +21,11 @@
> \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
>
> #include <stdio.h>
> +#ifdef __CYGWIN__
> +#include <sys/types.h>
> +#else
> #include <stdint.h>
> +#endif
> #include "gnugo.h"
>
> /*
>
>
> _______________________________________________
> gnugo-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnugo-devel
>
Re: [gnugo-devel] hash.h: cygwin has no <stdint.h>,
Jens Yllman <=