aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-14 16:42:30 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-14 16:42:30 +0000
commit5bb367b1d911e5893a504ebd2ac301f55cd3ec79 (patch)
tree59ab5aed48339cc88c8792a7741b007f46346d5b /gdb/defs.h
parent0eee5820aa0f68b2283b40f5a3fb09aefcfb1575 (diff)
downloadgdb-5bb367b1d911e5893a504ebd2ac301f55cd3ec79.zip
gdb-5bb367b1d911e5893a504ebd2ac301f55cd3ec79.tar.gz
gdb-5bb367b1d911e5893a504ebd2ac301f55cd3ec79.tar.bz2
Eliminate some uses of __STDC__.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h21
1 files changed, 0 insertions, 21 deletions
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 */