diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-09-24 12:16:31 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-09-25 11:38:33 +0900 |
commit | 4cc501bcfd23691c5244877f9d088a6be6bc8e13 (patch) | |
tree | 1e609bfc3da90703ed1920b77e046fb65d403219 /ext/-test-/RUBY_ALIGNOF/cpp.cpp | |
parent | e75aed7abb7f869223ea05a2f96b2021b57bd98a (diff) |
ext/-test-/RUBY_ALIGNOF: skip C++ when no compiler
C++ compilers are optional. Skip C++ tests when they are absent.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3570
Diffstat (limited to 'ext/-test-/RUBY_ALIGNOF/cpp.cpp')
-rw-r--r-- | ext/-test-/RUBY_ALIGNOF/cpp.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/-test-/RUBY_ALIGNOF/cpp.cpp b/ext/-test-/RUBY_ALIGNOF/cpp.cpp index ea1211c38c..ed76d49b9f 100644 --- a/ext/-test-/RUBY_ALIGNOF/cpp.cpp +++ b/ext/-test-/RUBY_ALIGNOF/cpp.cpp @@ -7,9 +7,3 @@ struct T { }; RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(T, t)); - -extern "C" void -Init_RUBY_ALIGNOF() -{ - // Windows linker mandates this symbol to exist. -} |