freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] LLP64 model outside Win64


From: Pierre Hanser
Subject: Re: [ft-devel] LLP64 model outside Win64
Date: Mon, 12 Feb 2018 20:47:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 09/02/2018 16:32, Werner LEMBERG wrote:
>>> -#ifdef _WIN64
>>> -  /* only 64bit Windows uses the LLP64 data model, i.e., */
>>> -  /* 32bit integers, 64bit pointers                      */
>>> -#define FT_UINT_TO_POINTER( x ) (void*)(unsigned __int64)(x)
>>> -#else
>>> -#define FT_UINT_TO_POINTER( x ) (void*)(unsigned long)(x)
>>> -#endif
>>> +#define FT_UINT_TO_POINTER( x ) (void*)(uintptr_t)(x)
>> Strangely, uintptr_t never came up in
>> https://savannah.nongnu.org/bugs/index.php?50560
>> It is C99 though.
> Exactly.  Thus we cannot use it (at least not unconditionally).  I
> don't mind if the LLP64 data model gets untied from Windows, but it
> should be a portable solution that works with pre-C99 compilers also.
C99 is 20 years old. At work where we tend to be a bit conservative
about compilers and environment,
even for embedded targets our current compiler support it
just my 2cents
-- 
    Pierre




reply via email to

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