aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2017-06-12 17:43:28 -0400
committerGlenn Morris2017-06-12 17:43:28 -0400
commit69899d4a7e6e9e1b5e9f1894c53a81e340907f9d (patch)
tree0d28b1b3c10afc099319e138ee3867ee7c25a92e /src
parent73b50a10732fa325f59365a7cd5ae48ddf71056c (diff)
downloademacs-69899d4a7e6e9e1b5e9f1894c53a81e340907f9d.tar.gz
emacs-69899d4a7e6e9e1b5e9f1894c53a81e340907f9d.zip
Small portability fix for emacs-module.h (bug#27346)
* src/emacs-module.h (EMACS_ATTRIBUTE_NONNULL) [!__has_attribute]: Avoid 'error: missing binary operator before token "("'.
Diffstat (limited to 'src')
-rw-r--r--src/emacs-module.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emacs-module.h b/src/emacs-module.h
index 88cc38191b1..313dd58d690 100644
--- a/src/emacs-module.h
+++ b/src/emacs-module.h
@@ -35,9 +35,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
35# define EMACS_NOEXCEPT 35# define EMACS_NOEXCEPT
36#endif 36#endif
37 37
38#if defined __has_attribute && __has_attribute(__nonnull__) 38#ifdef __has_attribute
39#if __has_attribute(__nonnull__)
39# define EMACS_ATTRIBUTE_NONNULL(...) __attribute__((__nonnull__(__VA_ARGS__))) 40# define EMACS_ATTRIBUTE_NONNULL(...) __attribute__((__nonnull__(__VA_ARGS__)))
40#else 41#endif
42#endif
43#ifndef EMACS_ATTRIBUTE_NONNULL
41# define EMACS_ATTRIBUTE_NONNULL(...) 44# define EMACS_ATTRIBUTE_NONNULL(...)
42#endif 45#endif
43 46