Skip to content

Commit d4a0721

Browse files
committed
Prefer RUBY_SYMBOL_EXPORT_{BEGIN,END} for consistency with other ruby headers
1 parent cd06a71 commit d4a0721

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/cext/include/truffleruby/truffleruby-pre.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
extern "C" {
1919
#endif
2020

21+
RUBY_SYMBOL_EXPORT_BEGIN
22+
2123
#define TRUFFLERUBY
2224

2325
#include <graalvm/llvm/polyglot.h>
@@ -53,7 +55,7 @@ POLYGLOT_DECLARE_TYPE(VALUE)
5355
extern void* rb_tr_cext;
5456
#define RUBY_CEXT rb_tr_cext
5557

56-
void* rb_tr_abi_version(void) __attribute__((weak)) __attribute__((visibility("default")));
58+
void* rb_tr_abi_version(void) __attribute__((weak));
5759
void* rb_tr_abi_version(void) {
5860
char* abi_version = STRINGIZE(TRUFFLERUBY_ABI_VERSION);
5961
return polyglot_from_string(abi_version, "US-ASCII");
@@ -75,6 +77,8 @@ extern ID (*rb_tr_sym2id)(VALUE sym);
7577
#define offsetof(p_type,field) ((size_t)&(((p_type *)0)->field))
7678
#endif
7779

80+
RUBY_SYMBOL_EXPORT_END
81+
7882
#if defined(__cplusplus)
7983
}
8084
#endif

0 commit comments

Comments
 (0)