diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-09-11 16:49:04 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-09-11 16:49:04 +0100 |
commit | 095a7f4cf07e78016a5ba56a6f8e2d427ecc245a (patch) | |
tree | 4d6f987fd1d689a2196ffab90945f902f5c6419c /xkbcommon | |
parent | e9405fa20d0a88319f607d44cf7151423239ed21 (diff) |
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>
Diffstat (limited to 'xkbcommon')
-rw-r--r-- | xkbcommon/xkbcommon-keysyms.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xkbcommon/xkbcommon-keysyms.h b/xkbcommon/xkbcommon-keysyms.h index 2c1ab95..253ea59 100644 --- a/xkbcommon/xkbcommon-keysyms.h +++ b/xkbcommon/xkbcommon-keysyms.h @@ -1,3 +1,10 @@ +#ifndef _XKBCOMMON_KEYSYMS_H +#define _XKBCOMMON_KEYSYMS_H + +/* This file is autogenerated from Makefile.am; please do not commit directly. */ + +#define XKB_KEY_NoSymbol 0x000000 /* Special KeySym */ + /*********************************************************** Copyright 1987, 1994, 1998 The Open Group @@ -112,7 +119,6 @@ SOFTWARE. * */ -#define XKB_KEY_NoSymbol 0x000000 /* Special KeySym */ #define XKB_KEY_VoidSymbol 0xffffff /* Void symbol */ /* @@ -2993,3 +2999,6 @@ performance, or use of this material. #define XKB_KEY_longminus 0x100000f6 #define XKB_KEY_block 0x100000fc + + +#endif |