aboutsummaryrefslogtreecommitdiff
path: root/teco.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-04 17:40:58 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-04 18:27:47 +0300
commit997e2b2acb06b2645ce0797d7fc3a45a604193be (patch)
tree05e1c32944f6ab622b14cf8748d9818599d412d7 /teco.h
parent23c7a694db66364fff81edbf93bbd318016f43b2 (diff)
downloadvideoteco-fork-997e2b2acb06b2645ce0797d7fc3a45a604193be.tar.gz
moved the DOS-specific defines into teco.h, so we don't need the `@WCC_DEFS` workaround
Also, we increased the maximum size of objects to be put into the "far data" section, which significantly decreases the DOS binary size.
Diffstat (limited to 'teco.h')
-rw-r--r--teco.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/teco.h b/teco.h
index 4959ab7..eec13c1 100644
--- a/teco.h
+++ b/teco.h
@@ -72,6 +72,31 @@
#include "config.h"
#endif
+#ifdef MSDOS
+#define __WATCOM_LFN__
+#define STDC_HEADERS 1
+#define HAVE_STDIO_H 1
+#define HAVE_CTYPE_H 1
+#define HAVE_ERRNO_H 1
+#define HAVE_STRING_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_FCNTL_H 1
+#define HAVE_IO_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SIGNAL_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_DIRECT_H 1
+#define HAVE_I86_H 1
+#define HAVE_PROCESS_H 1
+#define HAVE_CONIO_H 1
+#define HAVE_MALLOC_H 1
+#define HAVE_SBRK 1
+#define HAVE_STRCHR 1
+#define TERMCAP 1
+#endif /* MSDOS */
+
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif