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