[Qt-interest] Indentify 64 bit

Stefano Rosellini s.rosellini at iv-srl.it
Thu Jul 2 18:12:12 CEST 2009


Paul Floyd ha scritto:
> Quoting Stefano Rosellini <s.rosellini at iv-srl.it>:
>
>   
>> How can make a preprocess in my Qt program to distinguish 64 bit vs 32?
>>     
>
> Hi
>
> Are you looking for something to tell if the code is 64bit or not? Some of the
> Q_OS macros will tell you this (e.g., for Windows or Mac). Otherwise something
> like
>
> 8 == sizeof(void*)
>
> A+
> Paul
>   
Thanks Paul, but I need a preprocess, not a runtime check. And it should 
be platform independent.

-- 
Stefano Rosellini
Informatica Valdinievole




More information about the Qt-interest-old mailing list