summaryrefslogtreecommitdiff
path: root/include/ruby/defines.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-29 12:12:07 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-29 16:38:15 +0900
commitad4da86669454dee86844b3e0a3ecf9177084db3 (patch)
tree466fc690489c37fe46c1a579848a9c00f4d8db74 /include/ruby/defines.h
parent9195ed18cacb0d448c818d2a80db105d8b3cea3c (diff)
Check for nonnull attribute in configure
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r--include/ruby/defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index 0d95209b02..8603ade340 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -464,6 +464,9 @@ void rb_sparc_flush_register_windows(void);
#define RUBY_ALIAS_FUNCTION(prot, name, args) \
RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)
#endif
+#ifndef RUBY_FUNC_NONNULL
+#define RUBY_FUNC_NONNULL(n, x) x
+#endif
#ifndef UNALIGNED_WORD_ACCESS
# if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \