Qt vs C() macro

Our C() macro conflicts with Qt6 usage, so #undef C has added.  Move
that from nearly every qt_*.cpp into qt_pre.h where other similar
fixups are handled.
This commit is contained in:
PatR
2021-12-30 11:29:03 -08:00
parent 221e4a760d
commit f7c71b9f83
22 changed files with 2 additions and 22 deletions

View File

@@ -6,9 +6,8 @@
extern "C" {
#include "hack.h"
#define CTRL(c) (0x1f & (c)) // substitute for C() from global.h, for ^V hack
}
#undef C
#define CTRL(c) (0x1f & (c))
#include "qt_pre.h"
#include <QtGui/QtGui>