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

jquery - Invalid Assignment Left-Hand Side -

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

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -