[Qt-interest] Indentify 64 bit

Paul Floyd paulf at free.fr
Thu Jul 2 17:29:07 CEST 2009


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
-- 
Paul Floyd   http://paulf.free.fr



More information about the Qt-interest-old mailing list