#include <rfb/XF86keysym.h>
#endif
+#ifndef NoSymbol
+#define NoSymbol 0
+#endif
+
#include "Viewport.h"
#include "CConn.h"
#include "OptionsDialog.h"
// Unknown special key?
if (keyText[0] == '\0') {
vlog.error(_("Unknown FLTK key code %d (0x%04x)"), keyCode, keyCode);
- return XK_VoidSymbol;
+ return NoSymbol;
}
// Look up the symbol the key produces and translate that from Unicode
if (fl_utf_nb_char((const unsigned char*)keyText, strlen(keyText)) != 1) {
vlog.error(_("Multiple characters given for key code %d (0x%04x): '%s'"),
keyCode, keyCode, keyText);
- return XK_VoidSymbol;
+ return NoSymbol;
}
ucs = fl_utf8decode(keyText, NULL, NULL);
}
keySym = translateKeyEvent(keyCode, origKeyCode, keyText);
- if (keySym == XK_VoidSymbol)
+ if (keySym == NoSymbol)
return;
#ifdef WIN32