diff options
Diffstat (limited to 'include/stdc.h')
-rw-r--r-- | include/stdc.h | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/include/stdc.h b/include/stdc.h index c216a697..3106a90a 100644 --- a/include/stdc.h +++ b/include/stdc.h @@ -36,25 +36,15 @@ # endif #endif -#if defined (__STDC__) - +#if defined (HAVE_STRINGIZE) # define __STRING(x) #x - -# if !defined (__GNUC__) -# define inline -# endif - -#else /* !__STDC__ */ - +#else # define __STRING(x) "x" +#endif + +#if !defined (__STDC__) #if defined (__GNUC__) /* gcc with -traditional */ -# if !defined (const) -# define const __const -# endif -# if !defined (inline) -# define inline __inline -# endif # if !defined (signed) # define signed __signed # endif @@ -62,9 +52,6 @@ # define volatile __volatile # endif #else /* !__GNUC__ */ -# if !defined (const) -# define const -# endif # if !defined (inline) # define inline # endif @@ -78,4 +65,10 @@ #endif /* !__STDC__ */ +#ifndef __attribute__ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ +# define __attribute__(x) +# endif +#endif + #endif /* !_STDC_H_ */ |