Mercurial > hg > xemacs-beta
diff src/systty.h @ 513:e159a0b4bed4
[xemacs-hg @ 2001-05-07 07:49:18 by martinb]
TTY configury portability improvements.
author | martinb |
---|---|
date | Mon, 07 May 2001 07:49:19 +0000 |
parents | abe6d1db359e |
children | c69610198c35 |
line wrap: on
line diff
--- a/src/systty.h Mon May 07 07:42:40 2001 +0000 +++ b/src/systty.h Mon May 07 07:49:19 2001 +0000 @@ -27,29 +27,6 @@ # define HAVE_TCATTR #endif -/* If we defined these before and we are about to redefine them, - prevent alarming warnings. */ -#ifdef BSD_TERMIOS -#undef NL0 -#undef NL1 -#undef CR0 -#undef CR1 -#undef CR2 -#undef CR3 -#undef TAB0 -#undef TAB1 -#undef TAB2 -#undef XTABS -#undef BS0 -#undef BS1 -#undef FF0 -#undef FF1 -#undef ECHO -#undef NOFLSH -#undef TOSTOP -#undef FLUSHO -#undef PENDIN -#endif /* Include the proper files. */ @@ -393,27 +370,12 @@ /* Define EMACS_TTY_TABS_OK */ /* --------------------------------------------------------- */ -#ifdef HAVE_TERMIOS - -#ifdef TABDLY -#define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) +#if defined (TABDLY) && defined (TAB3) +# define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) +#elif defined (OXTABS) +# define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & OXTABS) != OXTABS) #else -#define EMACS_TTY_TABS_OK(p) 1 -#endif /* TABDLY */ - -#else /* not def HAVE_TERMIOS */ -#ifdef HAVE_TERMIO - -#define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) - -#else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ -#ifdef WIN32_NATIVE -#define EMACS_TTY_TABS_OK(p) 0 -#else /* not WIN32_NATIVE */ -#define EMACS_TTY_TABS_OK(p) (((p)->main.sg_flags & XTABS) != XTABS) -#endif /* not WIN32_NATIVE */ - -#endif /* not def HAVE_TERMIO */ -#endif /* not def HAVE_TERMIOS */ +# define EMACS_TTY_TABS_OK(p) 1 +#endif #endif /* INCLUDED_systty_h_ */