From 35b85cd57d541cf55c5789334bf38289be29acac Mon Sep 17 00:00:00 2001 From: "Henry M. Wu" Date: Sat, 29 Feb 1992 19:09:48 +0000 Subject: [PATCH] Allow conditional use of CONST even in ANSI C mode because some compilers (DOS Zortech) don't declare their libraries correctly although they are allegedly ANSI compatible. --- v7/src/microcode/ansidecl.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/v7/src/microcode/ansidecl.h b/v7/src/microcode/ansidecl.h index 978646f05..768fe1b35 100644 --- a/v7/src/microcode/ansidecl.h +++ b/v7/src/microcode/ansidecl.h @@ -61,11 +61,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define AND , #define NOARGS void -#define CONST const #define VOLATILE volatile #define SIGNED signed #define DOTS , ... +/* Some systems don't declare their libraries correctly, making CONST + impossible to have. */ +#ifdef NO_CONST +#define CONST +#else +#define CONST const +#endif + #define EXFUN(name, proto) name proto #define DEFUN(name, arglist, args) name(args) #define DEFUN_VOID(name) name(NOARGS) -- 2.25.1