[dpdk-dev] [PATCH v3 11/15] bus/dpaa: fix warning: "__WORDSIZE" is not defined, evaluates to 0
Thomas Monjalon
thomas at monjalon.net
Sat Mar 30 23:36:31 CET 2019
13/03/2019 18:06, Natanael Copa:
> There is no standard saying that __WORDSIZE should be be defined or in
> what include it should be defined. Use a portable way to detect 64 bit
> environment.
>
> This fixes a warning when building with musl libc:
>
> warning: "__WORDSIZE" is not defined, evaluates to 0 [-Wundef]
>
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
> ---
[...]
> -#if (__WORDSIZE == 64)
> +#if (ULONG_MAX == 0xffffffffffffffff)
There is a more explicit config in DPDK: RTE_ARCH_64
More information about the dev
mailing list