diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-06-09 16:55:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-06-09 16:55:27 +0900 |
commit | 906a86e4de71061dca0558a6bd6e0b355776dfb1 (patch) | |
tree | ba3e00a448526cc8d831d5db32f75502d8e5c9f2 /symbol.h | |
parent | dd8903fed72c2d06fe7a0ca6b5ef88e9140be451 (diff) |
Use `dllexport` as `RUBY_FUNC_EXPORTED` on Windows
Diffstat (limited to 'symbol.h')
-rw-r--r-- | symbol.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -100,7 +100,12 @@ sym_type(VALUE sym) #define is_class_sym(sym) (sym_type(sym)==ID_CLASS) #define is_junk_sym(sym) (sym_type(sym)==ID_JUNK) -RUBY_FUNC_EXPORTED const uint_least32_t ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32]; +#ifndef RIPPER +RUBY_FUNC_EXPORTED +#else +RUBY_EXTERN +#endif +const uint_least32_t ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32]; static inline int is_global_name_punct(const int c) |