bug-ncurses
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
OK Macro Interference
From
:
Geoffrey Viola
Subject
:
OK Macro Interference
Date
:
Mon, 31 Aug 2020 14:02:57 -0700
Hi,
I had some issues with include order due to macro definitions in the ncurses header file. I noticed that ncurses defines an OK macros and leaves it defined in
https://github.com/mirror/ncurses/blob/a7e05fb9806cc1255b6ba4fb29e15d337f35b2ad/include/curses.h.in#L371
. This causes some issues for functions that may want to be called OK:
https://github.com/ApolloAuto/apollo/blob/master/cyber/state.h#L43
. Would it be possible to change OK to NCURSES_OK? Another option that would work for me would be to undefine the OK macro outside of curses.h. Also, should the other macros follow? For example, there's TRUE, FALSE, and ERR.
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
OK Macro Interference
,
Geoffrey Viola
<=
Re: OK Macro Interference
,
Thomas Dickey
,
2020/08/31
Prev by Date:
Re: [bug-ncurses] patch 6.2-20200829 broken somehow
Next by Date:
ANN: ncurses-6.2-20200831
Previous by thread:
patch 6.2-20200829 broken somehow
Next by thread:
Re: OK Macro Interference
Index(es):
Date
Thread