There's really no need to pull this into a public header.
#include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xfuncproto.h>
-#include <X11/keysym.h>
#include <X11/extensions/XKBstrcommon.h>
#include <X11/extensions/XKBgeomcommon.h>
#include <X11/extensions/XKBrulescommon.h>
XkbcEnsureSafeMapName(char *name);
extern unsigned
-_XkbcKSCheckCase(KeySym sym);
+_XkbcKSCheckCase(KeySym sym);
_XFUNCPROTOEND
#include "X11/extensions/XKBcommon.h"
#include "XKBcommonint.h"
+#include <X11/keysym.h>
#define mapSize(m) (sizeof(m) / sizeof(XkbKTMapEntryRec))
static XkbKTMapEntryRec map2Level[]= {