From 04f511940a7c84c442ec0db7651d949ea5d319e4 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 19 Apr 2026 17:15:25 +0000 Subject: [PATCH] Prevent Init_caca from being hidden --- ruby/caca.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ruby/caca.c b/ruby/caca.c index 973ee80..0df09d0 100644 --- a/ruby/caca.c +++ b/ruby/caca.c @@ -24,6 +24,9 @@ static VALUE get_version(VALUE self) return rb_str_new2(caca_get_version()); } +#if defined CACA_ENABLE_VISIBILITY +extern __attribute__((visibility("default"))) +#endif void Init_caca() { VALUE mCaca = rb_define_module("Caca");