gnutls-devel
[Top][All Lists]
Advanced

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

Re: Patch for MinGW-W64 port


From: Nikos Mavrogiannopoulos
Subject: Re: Patch for MinGW-W64 port
Date: Thu, 22 Mar 2012 22:03:43 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16

On 03/22/2012 09:26 PM, Eli Zaretskii wrote:

> 64-bit Windows uses the LLP64 model, so `unsigned long' is a 32-bit
> type.  By contrast, ptrdiff_t is a (signed) 64-bit type.
> 
>>> +    $ac_cv_sizeof_long_long)
>>> +      AC_DEFINE([GNUTLS_POINTER_TO_INT_CAST], [(long long)],
>>> +                [Additional cast to bring void* to a type castable to 
>>> int.])
>>> +      ;;
>> Why use long long for pointer to int? Isn't in this platform
>> sizeof(void*)==sizeof(long)?
> No, see above.  On 64-bit Windows, sizeof(void *) == sizeof(long long)


Ah, ok. I've applied a slightly modified version of it.

regards,
Nikos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]