[Qt-interest] Detecting size of datatype with qmake

Esben Mose Hansen kde at mosehansen.dk
Sun May 16 09:00:41 CEST 2010


On Sunday 16 May 2010 04:47:32 Nikos Chantziaras wrote:
> Is there a way I could detect the size of datatypes like 'short' and
> 'int' with qmake from within the project file?  I am working with a
> header file that needs macros like SIZEOF_SHORT and SIZEOF_INT defined.

Why not simply use

#define SIZEOF_SHORT sizeof(short)
#define SIZEOF_INT sizeof(int)

?

-- 
Kind regards, Esben



More information about the Qt-interest-old mailing list