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
Post a Comment