xkbcommon-keysyms: Add header protection
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 11 Sep 2012 15:49:04 +0000 (16:49 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 11 Sep 2012 15:49:04 +0000 (16:49 +0100)
commit095a7f4cf07e78016a5ba56a6f8e2d427ecc245a
tree4d6f987fd1d689a2196ffab90945f902f5c6419c
parente9405fa20d0a88319f607d44cf7151423239ed21
xkbcommon-keysyms: Add header protection

As there is currently no stable release of xkbcommon, other projects might
want to include a copy of the keysyms so they can be used even though
libxkbcommon may not be available on the machine. However, if xkbcommon.h
is still included, conflicts will occur. Hence, to avoid nasty hacks,
simply include a header protection in xkbcommon upstream.

[daniels: Added protection to Makefile.am's update-keysyms, as well as
          XKB_KEY_NoSymbol, and a comment noting that it shouldn't be
          updated directly.]

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Makefile.am
xkbcommon/xkbcommon-keysyms.h