Could we get a LP64 version identifier?

Jacob Carlborg doobnet at gmail.com
Sun Jan 25 06:30:38 PST 2009


Denis Koroskin wrote:
> On Sun, 25 Jan 2009 15:32:33 +0300, Jacob Carlborg <doobnet at gmail.com> 
> wrote:
> 
>> Could we get a LP64 version identifier? I know that you can use this 
>> code:
>>
>> "static if ((void*).sizeof > int.sizeof)"
>>
>> to do the same but that's not particular clear that the programmer 
>> wants to check for LP64. If so, I hope we could get it in D1 also.
> 
> version (X86) {
>  ...
> } else {
>  ...
> }
> 

Win64 and all non X86 32bit versions would fall in the else statement. 
Actually I now saw that D already has a D_LP64 version identifier.



More information about the Digitalmars-d mailing list