[bug]: uint32_t not declared
The latest tip fails to build for me. I don't have uint32_t. Which header should include it? I'm using gcc 4.1.2. Regards, Jeremy Henty
Answering myself: On Sun, May 24, 2009 at 01:47:20PM +0100, Jeremy Henty wrote:
I don't have uint32_t. Which header should include it?
It's stdint.h , which is on my system and correctly found by autoconf. /* Define to 1 if you have the <stdint.h> header file. */ #define HAVE_STDINT_H 1 Patch attached. But what happens if HAVE_STDINT_H is undefined? Regards, Jeremy Henty
On Sun, May 24, 2009 at 02:06:57PM +0100, Jeremy Henty wrote:
It's stdint.h , which is on my system and correctly found by autoconf.
You should conditionally include both stdint.h and inttypes.h, some system miss one or both of them.
Patch attached. But what happens if HAVE_STDINT_H is undefined?
You can also use AC_TYPE_UINT32_T and friends, it will define uint32_t if necessary. Joerg
Joerg wrote:
On Sun, May 24, 2009 at 02:06:57PM +0100, Jeremy Henty wrote:
It's stdint.h , which is on my system and correctly found by autoconf.
You should conditionally include both stdint.h and inttypes.h, some system miss one or both of them.
Patch attached. But what happens if HAVE_STDINT_H is undefined?
You can also use AC_TYPE_UINT32_T and friends, it will define uint32_t if necessary.
It looks like they were introduced in 2006 in autoconf 2.60. That's the version I happen to have, but...
participants (3)
-
corvid@lavabit.com
-
joerg.sonnenberger@web.de
-
onepoint@starurchin.org