#include #include #if HIRO_QT==5 #include #endif #undef foreach #include #define XK_MISCELLANY #define XK_LATIN1 #include #include #undef XK_MISCELLANY #undef XK_LATIN1 #include //Qt 4.8.0 and earlier improperly define the QLOCATION macro //in C++11, it is detected as a malformed user-defined literal //below is a workaround to fix compilation errors caused by this #if HIRO_QT==4 #undef QLOCATION #define QLOCATION "\0" __FILE__ ":" QTOSTRING(__LINE__) #endif