diff options
| author | Paul Eggert | 2020-05-05 17:16:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-05-05 17:22:07 -0700 |
| commit | 8f6524db832f0c6fdbbbc639149fe63065a62096 (patch) | |
| tree | 881e04e9932da1bf6374b889ca918d24255d5078 /src | |
| parent | bbc34d3762326ea13e9a10a959ea5b59aadb6736 (diff) | |
| download | emacs-8f6524db832f0c6fdbbbc639149fe63065a62096.tar.gz emacs-8f6524db832f0c6fdbbbc639149fe63065a62096.zip | |
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')
| -rw-r--r-- | src/emacs-module.c | 2 |
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) | |||
| 248 | of `internal_condition_case' etc., and to avoid worrying about | 248 | of `internal_condition_case' etc., and to avoid worrying about |
| 249 | passing information to the handler functions. */ | 249 | passing information to the handler functions. */ |
| 250 | 250 | ||
| 251 | #if !__has_attribute (cleanup) | 251 | #if !HAS_ATTRIBUTE (cleanup) |
| 252 | #error "__attribute__ ((cleanup)) not supported by this compiler; try GCC" | 252 | #error "__attribute__ ((cleanup)) not supported by this compiler; try GCC" |
| 253 | #endif | 253 | #endif |
| 254 | 254 | ||