summaryrefslogtreecommitdiff
path: root/msdos/langinfo.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-10 21:36:59 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-11 19:49:40 +0800
commita37484992651fa6bdee9d5181fb6b096dbf41426 (patch)
tree6d8ed65a07f9da3bc7565be1db166b5090c42378 /msdos/langinfo.h
parent5708da48d1c7017b937e0fbfeb7de77bb3ba084e (diff)
downloademacs-a37484992651fa6bdee9d5181fb6b096dbf41426.tar.gz
Fix the DJGPP port
* config.bat: * msdos/sed1v2.inp: * msdos/sed2v2.inp: * msdos/sed3v2.inp: * msdos/sedlibmk.inp: Update for Emacs 28. * msdos/langinfo.h: New file. * lisp/loadup.el: Use correct path to temacs when dumping on MS-DOS. * src/callproc.c (environ) [MSDOS]: New declaration. (child_setup, emacs_spawn): Update MS-DOS parts for Emacs 28. * src/fileio.c (Fcopy_file): Don't use copy_file_range on MS-DOS. * src/msdos.c (initialize_msdos_display): Add `defined_color_hook'. (openat, fchmodat, futimens, utimensat): New functions. * src/msdos.h (FRAME_X_DISPLAY): New macro. * src/process.c: Make some more things conditional on subprocess support. (PIPECONN_P, PIPECONN1_P) [!subprocesses]: New placeholder macros. (Fnum_processors): Return 1 on MSDOS. (open_channel_for_module): Avoid subprocess specific code on MSDOS.
Diffstat (limited to 'msdos/langinfo.h')
-rw-r--r--msdos/langinfo.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/msdos/langinfo.h b/msdos/langinfo.h
new file mode 100644
index 00000000000..a74c3f7f8e8
--- /dev/null
+++ b/msdos/langinfo.h
@@ -0,0 +1,20 @@
+/* Replacement langinfo.h file for building GNU Emacs on MS-DOS with DJGPP.
+
+Copyright (C) 2021 Free Software Foundation, Inc.
+
+This file is part of GNU Emacs.
+
+GNU Emacs is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or (at
+your option) any later version.
+
+GNU Emacs is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
+
+#define nl_langinfo(ignore) "cp437"