Selectively include headers in Qt using preprocessors -


i trying include windows specific headers on cross-platform project in following way.

#ifdef q_os_win #include "qt_windows.h" #include "shellapi.h" #endif 

for reasons, files not included properly.

note: using mingw-gcc compiler.

i don't think defined. should q_os_win32 or q_ws_win. see qt global.

#include <qtglobal>  #ifdef q_os_win32 #include "qt_windows.h" #include "shellapi.h" #endif 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -