diff options
author | John Gilmore <gnu@cygnus> | 1991-05-30 08:52:52 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-05-30 08:52:52 +0000 |
commit | d11c44f1ee9650339d5c874d3227611f82e3f104 (patch) | |
tree | 23487e3405f8e4c1202d95d6c3e3fa4fe67ac2fb /gdb/defs.h | |
parent | 924bbb3815705cba6e369cbea2dff86884e9265a (diff) | |
download | gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.zip gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.gz gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.bz2 |
Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 28 |
1 files changed, 20 insertions, 8 deletions
@@ -36,15 +36,25 @@ typedef unsigned int CORE_ADDR; * If non-ansi, non-gcc, then eliminate "const" entirely, making those * objects be read-write rather than read-only. */ +#ifndef const #ifndef __STDC__ # ifdef __GNUC__ # define const __const__ -# define volatile __volatile__ # else # define const /*nothing*/ +# endif /* GNUC */ +#endif /* STDC */ +#endif /* const */ + +#ifndef volatile +#ifndef __STDC__ +# ifdef __GNUC__ +# define volatile __volatile__ +# else # define volatile /*nothing*/ # endif /* GNUC */ #endif /* STDC */ +#endif /* volatile */ extern char *savestring (); extern char *strsave (); @@ -61,14 +71,16 @@ extern char *reg_names[]; extern volatile void error(), fatal(); /* Various possibilities for alloca. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef sparc -# include <alloca.h> -# endif - extern char *alloca (); +#ifndef alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# else +# ifdef sparc +# include <alloca.h> +# endif + extern char *alloca (); # endif +#endif extern int errno; /* System call error return status */ |