summaryrefslogtreecommitdiff
path: root/symbol.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-06-09 16:55:27 +0900
committerNobuyoshi Nakada <[email protected]>2024-06-09 16:55:27 +0900
commit906a86e4de71061dca0558a6bd6e0b355776dfb1 (patch)
treeba3e00a448526cc8d831d5db32f75502d8e5c9f2 /symbol.h
parentdd8903fed72c2d06fe7a0ca6b5ef88e9140be451 (diff)
Use `dllexport` as `RUBY_FUNC_EXPORTED` on Windows
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/symbol.h b/symbol.h
index 3649f125bf..6b51868961 100644
--- a/symbol.h
+++ b/symbol.h
@@ -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)