diff options
Diffstat (limited to 'include/ruby/3/attr/noalias.h')
-rw-r--r-- | include/ruby/3/attr/noalias.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/ruby/3/attr/noalias.h b/include/ruby/3/attr/noalias.h index c15f1480cb..49ad11999d 100644 --- a/include/ruby/3/attr/noalias.h +++ b/include/ruby/3/attr/noalias.h @@ -1,4 +1,6 @@ -/** \noop-*-C++-*-vi:ft=cpp +#ifndef RUBY3_ATTR_NOALIAS_H /*-*-C++-*-vi:se ft=cpp:*/ +#define RUBY3_ATTR_NOALIAS_H +/** * @file * @author Ruby developers <ruby-core@ruby-lang.org> * @copyright This file is a part of the programming language Ruby. @@ -47,12 +49,10 @@ #include "ruby/3/has/declspec_attribute.h" /** Wraps (or simulates) `__declspec((noalias))` */ -#if defined(RUBY3_ATTR_NOALIAS) -# /* Take that. */ - -#elif RUBY3_HAS_DECLSPEC_ATTRIBUTE(noalias) +#if RUBY3_HAS_DECLSPEC_ATTRIBUTE(noalias) # define RUBY3_ATTR_NOALIAS() __declspec(noalias) - #else # define RUBY3_ATTR_NOALIAS() /* void */ #endif + +#endif /* RUBY3_ATTR_NOALIAS_H */ |