#define _WIN32_WINT 0x0500
-
Hi All,
To include windows.h headerfile , i use a pre processing directive #define _WIN32_WINT 0x0500 ,
Can someone let me know what is the equivalent directive for the linux systems/ mac.I'am declaring the above pre preocessor before including windows.h ,in main.cpp
Is it a right place or should I specify such token's inside the pro file? If so what should I define so that it works well with windows,mac and LInux based machines. -
Hi All,
To include windows.h headerfile , i use a pre processing directive #define _WIN32_WINT 0x0500 ,
Can someone let me know what is the equivalent directive for the linux systems/ mac.I'am declaring the above pre preocessor before including windows.h ,in main.cpp
Is it a right place or should I specify such token's inside the pro file? If so what should I define so that it works well with windows,mac and LInux based machines.Why do you include Windows.h at all? On Linux and mac, there is no Windows.h. So if you need stuff from the Windows API, you'll have to rewrite it for the other platforms.
But probably there's already something in Qt that could help you?
-
Assuming that you are using in Qt did you look at the Qt directives like ?
Q_OS_WIN,
Q_OS_LINUX -
Why do you include Windows.h at all? On Linux and mac, there is no Windows.h. So if you need stuff from the Windows API, you'll have to rewrite it for the other platforms.
But probably there's already something in Qt that could help you?
-
Assuming that you are using in Qt did you look at the Qt directives like ?
Q_OS_WIN,
Q_OS_LINUX