diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2014-03-04 13:59:53 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2014-03-04 13:59:53 +0000 |
commit | d775d2a5ae008c17f4c78e9d55cb28569ae0e3fb (patch) | |
tree | bd81f8a878e232d7c1a9b9a65a7e63fa03b60cfe | |
parent | a91f511f2708114f8142b0e57f7230abae3b72e1 (diff) | |
download | termo-d775d2a5ae008c17f4c78e9d55cb28569ae0e3fb.tar.gz termo-d775d2a5ae008c17f4c78e9d55cb28569ae0e3fb.tar.xz termo-d775d2a5ae008c17f4c78e9d55cb28569ae0e3fb.zip |
Make header compatible with C++ (from https://github.com/o11c/libtermkey/commit/ddd7b0c5aa10bb62dc2f7673414e9a00f11ff447) [thanks o11c]
-rw-r--r-- | termkey.h.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/termkey.h.in b/termkey.h.in index f884e55..87c5e5b 100644 --- a/termkey.h.in +++ b/termkey.h.in @@ -224,8 +224,8 @@ typedef enum { /* Some useful combinations */ -#define TERMKEY_FORMAT_VIM (TERMKEY_FORMAT_ALTISMETA|TERMKEY_FORMAT_WRAPBRACKET) -#define TERMKEY_FORMAT_URWID (TERMKEY_FORMAT_LONGMOD|TERMKEY_FORMAT_ALTISMETA| \ +#define TERMKEY_FORMAT_VIM (TermKeyFormat)(TERMKEY_FORMAT_ALTISMETA|TERMKEY_FORMAT_WRAPBRACKET) +#define TERMKEY_FORMAT_URWID (TermKeyFormat)(TERMKEY_FORMAT_LONGMOD|TERMKEY_FORMAT_ALTISMETA| \ TERMKEY_FORMAT_LOWERMOD|TERMKEY_FORMAT_SPACEMOD|TERMKEY_FORMAT_LOWERSPACE) size_t termkey_strfkey(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format); |