From 5042516c74cfc3e30d6f9861c2f0cb17032f0623 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Mon, 22 Nov 2004 18:26:58 +0000 Subject: [PATCH] Fixed KEYLP structure for big endian. --- windows/input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows/input.c b/windows/input.c index 42617c1d149..ec6b8cef81e 100644 --- a/windows/input.c +++ b/windows/input.c @@ -68,7 +68,9 @@ typedef union { struct { +#ifndef BITFIELDS_BIGENDIAN unsigned long count : 16; +#endif unsigned long code : 8; unsigned long extended : 1; unsigned long unused : 2; @@ -76,6 +78,9 @@ typedef union unsigned long context : 1; unsigned long previous : 1; unsigned long transition : 1; +#ifdef BITFIELDS_BIGENDIAN + unsigned long count : 16; +#endif } lp1; unsigned long lp2; } KEYLP;