diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | regex_internal.h | 7 |
2 files changed, 7 insertions, 5 deletions
@@ -6,6 +6,11 @@ * regex_internal.c, regexec.c: __attribute --> __attribute__. + Related: + + * regex_internal.h: Clean up defines for non-GCC for attribute; + essentially sync it with GLIBC. + 2015-05-26 Paul Eggert <eggert@Penguin.CS.UCLA.EDU> * floatcomp.c (count_trailing_zeros): New function. diff --git a/regex_internal.h b/regex_internal.h index e0dd3517..4d0028ff 100644 --- a/regex_internal.h +++ b/regex_internal.h @@ -148,11 +148,8 @@ is_blank (int c) # define attribute_hidden #endif /* not _LIBC */ -#ifdef __GNUC__ -# define __attribute(arg) __attribute__ (arg) -#else -# define __attribute(arg) -# define __attribute__(arg) /* GAWK: They left this out. Duh. */ +#if __GNUC__ < 3 + (__GNUC_MINOR__ < 1) +# define __attribute__(arg) #endif #ifdef GAWK |