mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-14 09:39:42 +00:00
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.
This commit is contained in:
parent
bbc34d3762
commit
8f6524db83
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user