aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/3/attr/alloc_size.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/3/attr/alloc_size.h')
-rw-r--r--include/ruby/3/attr/alloc_size.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/ruby/3/attr/alloc_size.h b/include/ruby/3/attr/alloc_size.h
index 8296e9dcfd..251a19f7f3 100644
--- a/include/ruby/3/attr/alloc_size.h
+++ b/include/ruby/3/attr/alloc_size.h
@@ -1,4 +1,6 @@
-/** \noop-*-C++-*-vi:ft=cpp
+#ifndef RUBY3_ATTR_ALLOC_SIZE_H /*-*-C++-*-vi:se ft=cpp:*/
+#define RUBY3_ATTR_ALLOC_SIZE_H
+/**
* @file
* @author Ruby developers <ruby-core@ruby-lang.org>
* @copyright This file is a part of the programming language Ruby.
@@ -20,12 +22,10 @@
*/
/** Wraps (or simulates) `__attribute__((alloc_size))` */
-#if defined(RUBY3_ATTR_ALLOC_SIZE)
-# /* Take that. */
-
-#elif RUBY3_HAS_ATTRIBUTE(alloc_size)
+#if RUBY3_HAS_ATTRIBUTE(alloc_size)
# define RUBY3_ATTR_ALLOC_SIZE(tuple) __attribute__((__alloc_size__ tuple))
-
#else
# define RUBY3_ATTR_ALLOC_SIZE(tuple) /* void */
#endif
+
+#endif /* RUBY3_ATTR_ALLOC_SIZE_H */