[Qt-interest] Indentify 64 bit
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Thu Jul 2 18:08:04 CEST 2009
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Stefano Rosellini
> Sent: Thursday, July 02, 2009 9:12 AM
> To: QT Mailing LIST
> Subject: Re: [Qt-interest] Indentify 64 bit
>
> 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.
>
In your .pro, set a define based on the build configuration if there is
not a Q_OS macro set
Scott
More information about the Qt-interest-old
mailing list