diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2021-04-09 17:56:43 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2021-04-13 14:30:21 +0900 |
commit | f411fcd14587cfbf1efb86944134b993c04b050e (patch) | |
tree | 2a8eafc72186f56061625165bf450b86f98ca52c /include/ruby/internal/has/declspec_attribute.h | |
parent | 6878d51731c596fa4dc375b997c1c883d585db02 (diff) |
get rid of #pragma GCC diagnostic ignored "-Wundef"
Use of TOKEN_PASTE was a bad idea at the first place. Just use ##
everywhere. Nobody practically lacks token pasting.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4371
Diffstat (limited to 'include/ruby/internal/has/declspec_attribute.h')
-rw-r--r-- | include/ruby/internal/has/declspec_attribute.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/has/declspec_attribute.h b/include/ruby/internal/has/declspec_attribute.h index 02610338b8..9d54a6876b 100644 --- a/include/ruby/internal/has/declspec_attribute.h +++ b/include/ruby/internal/has/declspec_attribute.h @@ -27,7 +27,7 @@ #if defined(__has_declspec_attribute) # define RBIMPL_HAS_DECLSPEC_ATTRIBUTE(_) __has_declspec_attribute(_) #else -# define RBIMPL_HAS_DECLSPEC_ATTRIBUTE(_) RBIMPL_TOKEN_PASTE(RBIMPL_HAS_DECLSPEC_ATTRIBUTE_, _) +# define RBIMPL_HAS_DECLSPEC_ATTRIBUTE(_) (RBIMPL_HAS_DECLSPEC_ATTRIBUTE_ ## _) # define RBIMPL_HAS_DECLSPEC_ATTRIBUTE_align RBIMPL_COMPILER_SINCE(MSVC, 8, 0, 0) # define RBIMPL_HAS_DECLSPEC_ATTRIBUTE_deprecated RBIMPL_COMPILER_SINCE(MSVC,13, 0, 0) # define RBIMPL_HAS_DECLSPEC_ATTRIBUTE_dllexport RBIMPL_COMPILER_SINCE(MSVC, 8, 0, 0) |