summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--xkbcat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xkbcat.c b/xkbcat.c
index 3cd1869..9a14a65 100644
--- a/xkbcat.c
+++ b/xkbcat.c
@@ -23,7 +23,9 @@
char *DEFAULT_DISPLAY = ":0";
const int DEFAULT_DELAY = 10000;
-#define BIT(c, x) ( c[x/8]& (1<<(x%8)) )
+static inline int BIT(char *c, int x) {
+ return ( c[x/8]& (1<<(x%8)) );
+}
const int KEYSYM_STRLEN = 64;
/* Globals */