diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-09-06 16:50:57 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-09-06 16:52:20 +0900 |
commit | 1851dc269cb7a957fcb1fe2e97b7b76c2a52d096 (patch) | |
tree | 6eb04bda3b192f672b7063a19eab4182a8833e32 /ext/-test- | |
parent | 2aa4fb57d103b8deec43de6735e23a1c9b8c8fa0 (diff) |
avoid name mangling
Otherwise the dynamic linker cannot find this function.
See also https://ci.appveyor.com/project/ruby/ruby/builds/27224231/job/4pg6lxlsnsjotu2l
Diffstat (limited to 'ext/-test-')
-rw-r--r-- | ext/-test-/cxxanyargs/cxxanyargs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp index 28d99b98ba..51be7ca6d0 100644 --- a/ext/-test-/cxxanyargs/cxxanyargs.cpp +++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp @@ -335,7 +335,7 @@ namespace test_rb_ivar_foreach { } } -void +extern "C" void Init_cxxanyargs(void) { VALUE b = rb_define_module("Bug"); |