From d775d2a5ae008c17f4c78e9d55cb28569ae0e3fb Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Tue, 4 Mar 2014 13:59:53 +0000 Subject: Make header compatible with C++ (from https://github.com/o11c/libtermkey/commit/ddd7b0c5aa10bb62dc2f7673414e9a00f11ff447) [thanks o11c] --- termkey.h.in | 4 ++-- 1 file 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); -- cgit v1.2.3-70-g09d2