aboutsummaryrefslogtreecommitdiff
path: root/include/ansidecl.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-11-08 14:45:39 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-11-08 14:45:39 +0000
commitde5809b91dea597346f171d3e28522037af76a00 (patch)
tree883d022bf5a15b06d65f6e870610ec1c985bf5b1 /include/ansidecl.h
parent5c0aa6d0a0ea257515d0afb35517c30dfaaea210 (diff)
downloadgcc-de5809b91dea597346f171d3e28522037af76a00.zip
gcc-de5809b91dea597346f171d3e28522037af76a00.tar.gz
gcc-de5809b91dea597346f171d3e28522037af76a00.tar.bz2
ansidecl.h: Wrap problematic macros with !IN_GCC.
* ansidecl.h: Wrap problematic macros with !IN_GCC. * demangle.h: Never define PARAMS(). * splay-tree.h: Likewise. From-SVN: r23574
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r--include/ansidecl.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h
index abe87a9..cdb9fb7 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -103,10 +103,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define PTRCONST void *CONST
#define LONG_DOUBLE long double
+#ifndef IN_GCC
#define AND ,
#define NOARGS void
#define VOLATILE volatile
#define SIGNED signed
+#endif /* ! IN_GCC */
#define PARAMS(paramlist) paramlist
#define ANSI_PROTOTYPES 1
@@ -115,12 +117,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define VA_START(va_list,var) va_start(va_list,var)
/* These are obsolete. Do not use. */
+#ifndef IN_GCC
#define CONST const
#define DOTS , ...
#define PROTO(type, name, arglist) type name arglist
#define EXFUN(name, proto) name proto
#define DEFUN(name, arglist, args) name(args)
#define DEFUN_VOID(name) name(void)
+#endif /* ! IN_GCC */
#else /* Not ANSI C. */
@@ -128,13 +132,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define PTRCONST PTR
#define LONG_DOUBLE double
+#ifndef IN_GCC
#define AND ;
#define NOARGS
+#define VOLATILE
+#define SIGNED
+#endif /* !IN_GCC */
+
#ifndef const /* some systems define it in header files for non-ansi mode */
#define const
#endif
-#define VOLATILE
-#define SIGNED
#define PARAMS(paramlist) ()
@@ -142,12 +149,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define VA_START(va_list,var) va_start(va_list)
/* These are obsolete. Do not use. */
+#ifndef IN_GCC
#define CONST
#define DOTS
#define PROTO(type, name, arglist) type name ()
#define EXFUN(name, proto) name()
#define DEFUN(name, arglist, args) name arglist args;
#define DEFUN_VOID(name) name()
+#endif /* ! IN_GCC */
#endif /* ANSI C. */