summaryrefslogtreecommitdiff
path: root/ext/-test-/RUBY_ALIGNOF/c.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/RUBY_ALIGNOF/c.c')
-rw-r--r--ext/-test-/RUBY_ALIGNOF/c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/-test-/RUBY_ALIGNOF/c.c b/ext/-test-/RUBY_ALIGNOF/c.c
index 2ff23e1dfd..5768b8c3dd 100644
--- a/ext/-test-/RUBY_ALIGNOF/c.c
+++ b/ext/-test-/RUBY_ALIGNOF/c.c
@@ -7,3 +7,9 @@ struct T {
};
RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(struct T, t));
+
+void
+Init_RUBY_ALIGNOF()
+{
+ // Windows linker mandates this symbol to exist.
+}