summaryrefslogtreecommitdiff
path: root/src/emacs-module.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-05-05 17:16:49 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-05-05 17:22:07 -0700
commit8f6524db832f0c6fdbbbc639149fe63065a62096 (patch)
tree881e04e9932da1bf6374b889ca918d24255d5078 /src/emacs-module.c
parentbbc34d3762326ea13e9a10a959ea5b59aadb6736 (diff)
downloademacs-8f6524db832f0c6fdbbbc639149fe63065a62096.tar.gz
Don’t assume __has_attribute in emacs-module.c
Problem reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2020-05/msg00724.html * src/emacs-module.c: Use HAS_ATTRIBUTE instead of assuming the compiler supports __has_attribute.
Diffstat (limited to 'src/emacs-module.c')
-rw-r--r--src/emacs-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index e43e4907d2e..3d1827c7dad 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -248,7 +248,7 @@ module_decode_utf_8 (const char *str, ptrdiff_t len)
of `internal_condition_case' etc., and to avoid worrying about
passing information to the handler functions. */
-#if !__has_attribute (cleanup)
+#if !HAS_ATTRIBUTE (cleanup)
#error "__attribute__ ((cleanup)) not supported by this compiler; try GCC"
#endif