From ac444a4ae59738a98c99aa59d6bbfa602009ecfc Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 20 Jan 2019 14:30:09 -0500 Subject: [PATCH] Define mmask_t simliarly to chtype, to keep it to 32 bits. --- curses.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/curses.h b/curses.h index 39d54c5f..65c1db1a 100644 --- a/curses.h +++ b/curses.h @@ -100,6 +100,12 @@ typedef chtype attr_t; * */ +#if _LP64 +typedef unsigned int mmask_t; +#else +typedef unsigned long mmask_t; +#endif + typedef struct { int x; /* absolute column, 0 based, measured in characters */ @@ -206,8 +212,6 @@ typedef struct /* ncurses mouse interface */ -typedef unsigned long mmask_t; - typedef struct { short id; /* unused, always 0 */