diff options
Diffstat (limited to 'include/ruby/3/has/feature.h')
| -rw-r--r-- | include/ruby/3/has/feature.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/ruby/3/has/feature.h b/include/ruby/3/has/feature.h index 977b8150bb..f64c756817 100644 --- a/include/ruby/3/has/feature.h +++ b/include/ruby/3/has/feature.h @@ -1,4 +1,6 @@ -/** \noop-*-C++-*-vi:ft=cpp +#ifndef RUBY3_HAS_FEATURE_H /*-*-C++-*-vi:se ft=cpp:*/ +#define RUBY3_HAS_FEATURE_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) `__has_feature`. */ -#if defined(RUBY3_HAS_FEATURE) -# /* Take that. */ - -#elif defined(__has_feature) +#if defined(__has_feature) # define RUBY3_HAS_FEATURE(_) __has_feature(_) - #else # define RUBY3_HAS_FEATURE(_) 0 #endif + +#endif /* RUBY3_HAS_FEATURE_H */ |
