header.hpp 579 B

123456789101112131415161718192021222324
  1. #include <QApplication>
  2. #include <QtGui>
  3. #if HIRO_QT==5
  4. #include <QtWidgets>
  5. #endif
  6. #undef foreach
  7. #include <nall/xorg/guard.hpp>
  8. #define XK_MISCELLANY
  9. #define XK_LATIN1
  10. #include <X11/Xlib.h>
  11. #include <X11/keysymdef.h>
  12. #undef XK_MISCELLANY
  13. #undef XK_LATIN1
  14. #include <nall/xorg/guard.hpp>
  15. //Qt 4.8.0 and earlier improperly define the QLOCATION macro
  16. //in C++11, it is detected as a malformed user-defined literal
  17. //below is a workaround to fix compilation errors caused by this
  18. #if HIRO_QT==4
  19. #undef QLOCATION
  20. #define QLOCATION "\0" __FILE__ ":" QTOSTRING(__LINE__)
  21. #endif