From 1863470077b6a2b93e99534f595db92448d096cc Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Sun, 3 Jul 2005 19:16:16 +0000 Subject: merge from gcc --- include/ansidecl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/ansidecl.h') diff --git a/include/ansidecl.h b/include/ansidecl.h index 439431182..a1a765d63 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -352,6 +352,15 @@ So instead we use the macro below and test it against specific values. */ # endif /* GNUC >= 3.5 */ #endif /* ATTRIBUTE_SENTINEL */ + +#ifndef ATTRIBUTE_ALIGNED_ALIGNOF +# if (GCC_VERSION >= 3000) +# define ATTRIBUTE_ALIGNED_ALIGNOF(m) __attribute__ ((__aligned__ (__alignof__ (m)))) +# else +# define ATTRIBUTE_ALIGNED_ALIGNOF(m) +# endif /* GNUC >= 3.0 */ +#endif /* ATTRIBUTE_ALIGNED_ALIGNOF */ + /* We use __extension__ in some places to suppress -pedantic warnings about GCC extensions. This feature didn't work properly before gcc 2.8. */ -- cgit v1.2.3