From: Paul Eggert Date: Wed, 6 May 2020 00:16:49 +0000 (-0700) Subject: Don’t assume __has_attribute in emacs-module.c X-Git-Tag: emacs-28.0.90~7436 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f6524db832f0c6fdbbbc639149fe63065a62096;p=emacs.git 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. --- 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