diff options
| author | Po Lu <luangruo@yahoo.com> | 2026-05-28 11:33:59 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2026-05-28 12:59:55 +0800 |
| commit | de926d281a111a86b1907636c958508e1b71e198 (patch) | |
| tree | 97506e3df4afc98b3024b1d7303d9e7cc673fb0e /src | |
| parent | 330b4e2a942a6ff506bab72503f940c9b65d395f (diff) | |
Fix the MSDOS build
* msdos/sedlibmk.inp (GL_GNULIB_STDC_[^ =] &c.): Rename from
GL_STDC_... and define to 1 before other variables prefixed
GL_GNULIB_ are defined to 0.
(NEXT_AS_FIRST_DIRECTIVE_STDBIT_H)
(NEXT_AS_FIRST_DIRECTIVE_STDCOUNTOF_H, STDCOUNTOF_H): Define.
(GL_HAVE_STDBIT_H_CONDITION): Replace
GL_GENERATE_STDBIT_H_CONDITION.
(CXX_HAVE_STDCOUNTOF_H, GL_GNULIB_STREQ, GL_GNULIB_MEMEQ)
(GL_GNULIB_STRNUL, GL_GENERATE_STDCOUNTOF_H_CONDITION):
Substitute "1".
* src/conf_post.h (_REGEX_AVOID_UCHAR_H) [MSDOS]: Define to 1.
* src/term.c (init_tty) [MSDOS]: Set TN_max_colors to 16,
which was deleted inadvertently with recent MS Windows
modifications.
* config.bat: Rename stdcountof.in.h appropriately.
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_post.h | 4 | ||||
| -rw-r--r-- | src/term.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index 20a9ce2609b..e0bb753df56 100644 --- a/src/conf_post.h +++ b/src/conf_post.h @@ -386,6 +386,10 @@ extern int emacs_setenv_TZ (char const *); : S_ISLNK (mode) ? DT_LNK : S_ISBLK (mode) ? DT_BLK \ : S_ISCHR (mode) ? DT_CHR : S_ISFIFO (mode) ? DT_FIFO \ : S_ISSOCK (mode) ? DT_SOCK : DT_UNKNOWN) + +/* DJGPP doesn't provide uchar.h and Emacs doesn't import Gnulib's + replacement either. */ +#define _REGEX_AVOID_UCHAR_H 1 #endif /* MSDOS */ #if defined WINDOWSNT && !(defined OMIT_CONSOLESAFE && OMIT_CONSOLESAFE == 1) diff --git a/src/term.c b/src/term.c index 2261293a60b..1a5ed74d698 100644 --- a/src/term.c +++ b/src/term.c @@ -4751,6 +4751,7 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\ FrameCols (tty) = width; FrameRows (tty) = height; tty->char_ins_del_ok = 0; + tty->TN_max_colors = 16; /* Must be non-zero for tty-display-color-p. */ init_baud_rate (fileno (tty->input)); } #endif /* MSDOS */ |
