[PATCH] Compile fixes - undefined u64, s32

Gerald Britton gbritton
Fri Apr 11 13:29:52 PDT 2003


Why not include <stdint.h> and just use the C99 integer types?

(u)int{8|16|32|64}_t, or typedef the shorter names from these rather
than redoing it ourselves.

				-- Gerald

On Fri, Apr 11, 2003 at 04:21:10PM -0400, Pavel Roskin wrote:
> hostapd/common.h should define them and utils/hostap_crypt_conf.c should
> use that header instead of its own definitions.
> 
> __extension__ means that gcc shouldn't complain about non-portable "long
> long" even in the strict ANSI mode.  glibc uses it, so it's better to use
> a compatible definition.
>  
> +__extension__ typedef unsigned long long int u64;
>  typedef unsigned int u32;
>  typedef unsigned short u16;
>  typedef unsigned char u8;
>  
> +__extension__ typedef signed long long int s64;
> +typedef __int32_t s32;
> +typedef __int16_t s16;
> +typedef __int8_t s8;




More information about the Hostap mailing list