From 5bb367b1d911e5893a504ebd2ac301f55cd3ec79 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 14 Mar 2001 16:42:30 +0000 Subject: Eliminate some uses of __STDC__. --- gdb/defs.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'gdb/defs.h') diff --git a/gdb/defs.h b/gdb/defs.h index c6a4637..66c3e78 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -764,23 +764,6 @@ enum val_prettyprint #define CONST_PTR const #endif -/* - * Allow things in gdb to be declared "volatile". If compiling ANSI, it - * just works. If compiling with gcc but non-ansi, redefine to __volatile__. - * If non-ansi, non-gcc, then eliminate "volatile" entirely, making those - * objects be read-write rather than read-only. - */ - -#ifndef volatile -#ifndef __STDC__ -#ifdef __GNUC__ -#define volatile __volatile__ -#else -#define volatile /* nothing */ -#endif /* GNUC */ -#endif /* STDC */ -#endif /* volatile */ - /* Defaults for system-wide constants (if not defined by xm.h, we fake it). FIXME: Assumes 2's complement arithmetic */ @@ -993,11 +976,7 @@ extern void free (); /* We need to be careful not to declare this in a way which conflicts with bison. Bison never declares it as char *, but under various circumstances (like __hpux) we need to use void *. */ -#if defined (__STDC__) || defined (__hpux) extern void *alloca (); -#else /* Don't use void *. */ -extern char *alloca (); -#endif /* Don't use void *. */ #endif /* Not _AIX */ #endif /* Not HAVE_ALLOCA_H */ #endif /* Not GNU C */ -- cgit v1.1