Re: [PATCH v2 03/12] arch: keep BSD & Darwin specifics with i386/x86-64 specifics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 27/11/2019 02:06, Luc Van Oostenryck wrote:
> Without more testing, the specific types for wint_t & int64_t
> on FreeBSD & Darwin are only valid for i386/x86-64.
> 
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
> ---
>  target.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/target.c b/target.c
> index acafbd929..647817a22 100644
> --- a/target.c
> +++ b/target.c
> @@ -83,6 +83,13 @@ void init_target(void)
>  		wchar_ctype = &long_ctype;
>  		/* fall through */
>  	case MACH_X86_64:
> +#if defined(__APPLE__)
> +		int64_ctype = &llong_ctype;
> +		uint64_ctype = &ullong_ctype;
> +#endif
> +#if defined(__FreeBSD__) || defined(__APPLE__)
> +		wint_ctype = &int_ctype;
> +#endif

Heh, OK, question answered! ;-)

ATB,
Ramsay Jones

>  		break;
>  	case MACH_M68K:
>  	case MACH_SPARC32:
> @@ -193,11 +200,4 @@ void init_target(void)
>  #if defined(__CYGWIN__)
>  	wchar_ctype = &ushort_ctype;
>  #endif
> -#if defined(__FreeBSD__) || defined(__APPLE__)
> -	wint_ctype = &int_ctype;
> -#endif
> -#if defined(__APPLE__)
> -	int64_ctype = &llong_ctype;
> -	uint64_ctype = &ullong_ctype;
> -#endif
>  }
> 



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux