define A_NORMAL and/or A_REVERSE if undefined.

This commit is contained in:
okuji 1999-10-02 06:36:58 +00:00
parent c7b7ecb074
commit 07b947e669
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,11 @@
1999-10-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
Now it is possible to build the grub shell with old BSD curses.
* stage2/shared.h [!A_NORMAL] (A_NORMAL): Set to zero.
[!A_REVERSE && A_STANDOUT] (A_REVERSE): Set to A_STANDOUT.
[!A_REVERSE && !A_STANDOUT] (A_REVERSE): Set to zero.
1999-09-30 Pavel Roskin <pavel_roskin@geocities.com>
* stage2/disk_io.c (set_bootdev): Mask 0x7F instead of 0x79 of

View file

@ -264,6 +264,19 @@ extern char *grub_scratch_mem;
# include <curses.h>
#endif
/* In old BSD curses, A_NORMAL and A_REVERSE are not defined, so we
define them here if they are undefined. */
#ifndef A_NORMAL
# define A_NORMAL 0
#endif /* ! A_NORMAL */
#ifndef A_REVERSE
# ifdef A_STANDOUT
# define A_REVERSE A_STANDOUT
# else /* ! A_STANDOUT */
# define A_REVERSE 0
# endif /* ! A_STANDOUT */
#endif /* ! A_REVERSE */
/* Special graphics characters for IBM displays. */
#define DISP_UL 218
#define DISP_UR 191