aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorJan Djärv2010-04-02 11:45:27 +0200
committerJan Djärv2010-04-02 11:45:27 +0200
commit7a5a264fc27bde6870f08ecc5d85eddc36fa0336 (patch)
tree54106d60bd5f2273821bb5e3fb73bebf31a5599e /src/s
parentd0b228766f1471ed104d2e038f63cd4627d79b57 (diff)
parent9cb52861f287cbad4608a5fceddae5bac1a90ba6 (diff)
downloademacs-7a5a264fc27bde6870f08ecc5d85eddc36fa0336.tar.gz
emacs-7a5a264fc27bde6870f08ecc5d85eddc36fa0336.zip
Merge from trunk
Diffstat (limited to 'src/s')
-rw-r--r--src/s/msdos.h50
-rw-r--r--src/s/netbsd.h2
2 files changed, 1 insertions, 51 deletions
diff --git a/src/s/msdos.h b/src/s/msdos.h
index 88771b9f15f..55f546589ec 100644
--- a/src/s/msdos.h
+++ b/src/s/msdos.h
@@ -30,11 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30#define MSDOS 30#define MSDOS
31#endif 31#endif
32 32
33#ifdef __GO32__
34#ifndef __DJGPP__ 33#ifndef __DJGPP__
35#define __DJGPP__ 1 /* V2 defines __DJGPP__ == 2 */
36#endif
37#else
38You lose; /* Emacs for DOS must be compiled with DJGPP */ 34You lose; /* Emacs for DOS must be compiled with DJGPP */
39#endif 35#endif
40 36
@@ -97,34 +93,11 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
97#define _setjmp setjmp 93#define _setjmp setjmp
98#define _longjmp longjmp 94#define _longjmp longjmp
99 95
100#if __DJGPP__ < 2
101
102/* New chdir () routine.
103 DJGPP v2.0 and later doesn't need it because its chdir() does
104 set the drive itself. */
105#ifdef chdir
106#undef chdir
107#endif
108#define chdir sys_chdir
109
110#define LIBS_SYSTEM -lpc /* isn't required in DJGPP v2.0, either */
111
112#endif /* __DJGPP__ < 2 */
113
114#if __DJGPP__ > 1
115
116#define DATA_START (&etext + 1) 96#define DATA_START (&etext + 1)
117#define TEXT_START &start 97#define TEXT_START &start
118 98
119#define _NAIVE_DOS_REGS 99#define _NAIVE_DOS_REGS
120 100
121#else /* not __DJGPP__ > 1 */
122
123/* This somehow needs to be defined even though we use COFF. */
124#define TEXT_START -1
125
126#endif /* not __DJGPP__ > 1 */
127
128#define ORDINARY_LINK 101#define ORDINARY_LINK
129 102
130/* command.com does not understand `...` so we define this. */ 103/* command.com does not understand `...` so we define this. */
@@ -133,19 +106,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
133 106
134#define NULL_DEVICE "nul" 107#define NULL_DEVICE "nul"
135 108
136#if __DJGPP__ < 2
137#define O_RDONLY 0x0001
138#define O_WRONLY 0x0002
139#define O_RDWR 0x0004
140#define O_CREAT 0x0100
141#define O_TRUNC 0x0200
142#define O_EXCL 0x0400
143#define O_APPEND 0x0800
144#define O_TEXT 0x4000
145#define O_BINARY 0x8000
146#define NO_MATHERR
147#endif
148
149#define HAVE_INVERSE_HYPERBOLIC 109#define HAVE_INVERSE_HYPERBOLIC
150#define FLOAT_CHECK_DOMAIN 110#define FLOAT_CHECK_DOMAIN
151 111
@@ -166,12 +126,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
166#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') 126#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
167#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) 127#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
168 128
169/* Call init_gettimeofday when TZ changes. */
170#if __DJGPP__ < 2
171#define LOCALTIME_CACHE
172#define tzset init_gettimeofday
173#endif
174
175/* bcopy under djgpp is quite safe */ 129/* bcopy under djgpp is quite safe */
176#define GAP_USE_BCOPY 130#define GAP_USE_BCOPY
177#define BCOPY_UPWARD_SAFE 1 131#define BCOPY_UPWARD_SAFE 1
@@ -181,9 +135,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
181#define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B") 135#define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B")
182 136
183/* Do we have POSIX signals? */ 137/* Do we have POSIX signals? */
184#if __DJGPP__ > 1
185#define POSIX_SIGNALS 138#define POSIX_SIGNALS
186#endif
187 139
188/* We have (the code to control) a mouse. */ 140/* We have (the code to control) a mouse. */
189#define HAVE_MOUSE 141#define HAVE_MOUSE
@@ -197,7 +149,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
197 commentary below, in the non-X branch. The 140KB number was 149 commentary below, in the non-X branch. The 140KB number was
198 measured on GNU/Linux and on MS-WIndows. */ 150 measured on GNU/Linux and on MS-WIndows. */
199#define SYSTEM_PURESIZE_EXTRA (-170000+140000) 151#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
200#define LIBX11_SYSTEM -lxext -lsys 152#define LIBS_SYSTEM -lxext -lsys
201#else 153#else
202/* We need a little extra space, see ../../lisp/loadup.el. 154/* We need a little extra space, see ../../lisp/loadup.el.
203 As of 20091024, DOS-specific files use up 62KB of pure space. But 155 As of 20091024, DOS-specific files use up 62KB of pure space. But
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 5552aece50a..682b9482352 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -28,8 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28 28
29#define LIBS_TERMCAP -ltermcap 29#define LIBS_TERMCAP -ltermcap
30 30
31#define NEED_ERRNO
32
33#define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o 31#define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o
34#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 32#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1
35#undef LIB_GCC 33#undef LIB_GCC