diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-14 19:54:23 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-14 19:54:23 +0300 |
commit | 2685230246500f96fd4d594f9b470688c562c7b9 (patch) | |
tree | 4d910dedf338f3444cee376bc20242e58c233b59 | |
parent | c281360e41563f20b36645896e01ae9bafd52b52 (diff) | |
download | egawk-2685230246500f96fd4d594f9b470688c562c7b9.tar.gz egawk-2685230246500f96fd4d594f9b470688c562c7b9.tar.bz2 egawk-2685230246500f96fd4d594f9b470688c562c7b9.zip |
More "attribute" cleanup.
-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 |