aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-06-14 19:54:23 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-06-14 19:54:23 +0300
commit2685230246500f96fd4d594f9b470688c562c7b9 (patch)
tree4d910dedf338f3444cee376bc20242e58c233b59
parentc281360e41563f20b36645896e01ae9bafd52b52 (diff)
downloadegawk-2685230246500f96fd4d594f9b470688c562c7b9.tar.gz
egawk-2685230246500f96fd4d594f9b470688c562c7b9.tar.bz2
egawk-2685230246500f96fd4d594f9b470688c562c7b9.zip
More "attribute" cleanup.
-rw-r--r--ChangeLog5
-rw-r--r--regex_internal.h7
2 files changed, 7 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c5e3a6c..4c9949fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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