TARGET_LONG_BITS is defined in "exec/target_long.h" (which is currently included implicitly by various headers).
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Pierrick Bouvier <[email protected]> Message-Id: <[email protected]> --- include/exec/helper-head.h.inc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/exec/helper-head.h.inc b/include/exec/helper-head.h.inc index 5b248fd7138..7dec5f5b067 100644 --- a/include/exec/helper-head.h.inc +++ b/include/exec/helper-head.h.inc @@ -46,14 +46,13 @@ #define dh_ctype(t) dh_ctype_##t #ifdef COMPILING_PER_TARGET -# ifdef TARGET_LONG_BITS -# if TARGET_LONG_BITS == 32 -# define dh_alias_tl i32 -# define dh_typecode_tl dh_typecode_i32 -# else -# define dh_alias_tl i64 -# define dh_typecode_tl dh_typecode_i64 -# endif +# include "exec/target_long.h" +# if TARGET_LONG_BITS == 32 +# define dh_alias_tl i32 +# define dh_typecode_tl dh_typecode_i32 +# else +# define dh_alias_tl i64 +# define dh_typecode_tl dh_typecode_i64 # endif # define dh_ctype_tl target_ulong #endif /* COMPILING_PER_TARGET */ -- 2.53.0
