curses: build fix for italics attribute support
I've been building tty-only for a while in order to speed up builds, so a recent change to the curses interface that broke compile on older OSX went unnoticed. The <curses.h> on my OSX 10.11.6 system does not define A_ITALIC.
This commit is contained in:
@@ -46,6 +46,9 @@ extern WINDOW *activemenu; /* curses window for menu requesting a
|
|||||||
#if !defined(A_RIGHTLINE) && defined(A_RIGHT)
|
#if !defined(A_RIGHTLINE) && defined(A_RIGHT)
|
||||||
#define A_RIGHTLINE A_RIGHT
|
#define A_RIGHTLINE A_RIGHT
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef A_ITALIC
|
||||||
|
#define A_ITALIC A_UNDERLINE
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum orient_type
|
typedef enum orient_type
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,10 +12,6 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifndef A_ITALIC
|
|
||||||
#define A_ITALIC A_UNDERLINE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Misc. curses interface functions */
|
/* Misc. curses interface functions */
|
||||||
|
|
||||||
/* Private declarations */
|
/* Private declarations */
|
||||||
|
|||||||
Reference in New Issue
Block a user