aboutsummaryrefslogtreecommitdiff
path: root/gdb/obstack.h
diff options
context:
space:
mode:
authorgdb-3.1 <gdb@fsf.org>1989-01-31 17:56:40 +0000
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:31 +0100
commite91b87a36830d061ef87d67be5f309e4d4ed918f (patch)
tree3408ea913a9cccd51c9b7d0b3bc7d7897cac8a5b /gdb/obstack.h
parentbb7592f01006b09c846831a9fb9c306307ba34f6 (diff)
downloadgdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.zip
gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.tar.gz
gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.tar.bz2
gdb-3.1
Diffstat (limited to 'gdb/obstack.h')
-rw-r--r--gdb/obstack.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/obstack.h b/gdb/obstack.h
index f80f2b1..7ebb19c 100644
--- a/gdb/obstack.h
+++ b/gdb/obstack.h
@@ -290,9 +290,10 @@ int obstack_chunk_size (struct obstack *obstack);
#define obstack_blank_fast(h,n) ((h)->next_free += (n))
-#ifdef __GNUC__
+#if defined (__GNUC__) && defined (__STDC__)
-/* For GNU C we can define these macros to compute all args only once
+/* For GNU C, if not -traditional,
+ we can define these macros to compute all args only once
without using a global variable.
Also, we can avoid using the `temp' slot, to make faster code. */
@@ -372,7 +373,7 @@ int obstack_chunk_size (struct obstack *obstack);
__o->next_free = __o->object_base = __obj; \
else (obstack_free) (__o, __obj); })
-#else /* not __GNUC__ */
+#else /* not __GNUC__ or not __STDC__ */
/* The non-GNU macros copy the obstack-pointer into this global variable
to avoid multiple evaluation. */
@@ -447,7 +448,7 @@ extern struct obstack *_obstack;
: (int) _obstack_free ((h), (h)->temp + (char *) (h)->chunk)))
#endif
-#endif /* not __GNUC__ */
+#endif /* not __GNUC__ or not __STDC__ */
#endif /* not __OBSTACKS__ */