Allow conditional use of CONST even in ANSI C mode because some
authorHenry M. Wu <edu/mit/csail/zurich/mhwu>
Sat, 29 Feb 1992 19:09:48 +0000 (19:09 +0000)
committerHenry M. Wu <edu/mit/csail/zurich/mhwu>
Sat, 29 Feb 1992 19:09:48 +0000 (19:09 +0000)
compilers (DOS Zortech) don't declare their libraries correctly
although they are allegedly ANSI compatible.

v7/src/microcode/ansidecl.h

index 978646f05bea2b5fffd981f959c37e05e91cb08f..768fe1b35124de5a5932b29e1b1e238c81301fb7 100644 (file)
@@ -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)