summaryrefslogtreecommitdiff
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
commit12a0b3121fb01cbad192a2ec28b4de4943fcd097 (patch)
tree3c8af0455985b8f62c05851f52681c01f6c1555a /gdb/defs.h
parent5dd800b1ff3fa35d97a48489b5b64724f8377da6 (diff)
downloadgdb-12a0b3121fb01cbad192a2ec28b4de4943fcd097.tar.gz
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 c6a4637c4d6..66c3e78419a 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 */