diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-01-12 10:53:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-01-12 10:53:48 +0000 |
commit | ddaf94095891a21cedd6a18d9178e4444fb937a7 (patch) | |
tree | b47bcefa33533e4f41ecce4e3a1bee1d215e006e /include/features.h | |
parent | 77879554671206102471bb282accb3251395d151 (diff) |
Patch from James Graves <jgraves@deltamobile.com> to better handle m68k.
Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less)
should update and recompile.
-Erik
Diffstat (limited to 'include/features.h')
-rw-r--r-- | include/features.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/features.h b/include/features.h index 634590f49..f51ebd7e2 100644 --- a/include/features.h +++ b/include/features.h @@ -24,19 +24,27 @@ #define __P(x) x #define __PMT(x) x +#ifndef __const #define __const const +#endif /* Almost ansi */ #if __STDC__ != 1 +#ifndef const #define const +#endif #define volatile #endif #else /* K&R */ #define __P(x) () +#ifndef __const #define __const +#endif +#ifndef const #define const +#endif #define volatile #endif |