[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8f6524d: Don’t assume __has_attribute in emacs-module.c

From: Paul Eggert
Subject: master 8f6524d: Don’t assume __has_attribute in emacs-module.c
Date: Tue, 5 May 2020 20:22:26 -0400 (EDT)

branch: master
commit 8f6524db832f0c6fdbbbc639149fe63065a62096
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Don’t assume __has_attribute in emacs-module.c
    Problem reported by Glenn Morris in:
    * src/emacs-module.c: Use HAS_ATTRIBUTE instead of assuming
    the compiler supports __has_attribute.
 src/emacs-module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/emacs-module.c b/src/emacs-module.c
index e43e490..3d1827c 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"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]