From: Henry M. Wu Date: Sat, 29 Feb 1992 19:09:48 +0000 (+0000) Subject: Allow conditional use of CONST even in ANSI C mode because some X-Git-Tag: 20090517-FFI~9635 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=35b85cd57d541cf55c5789334bf38289be29acac;p=mit-scheme.git 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. --- 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)