From 9678dce5a41e14c4a4b3148c8f8a575e01a9d44f Mon Sep 17 00:00:00 2001 From: shirosaki Date: Tue, 10 Jan 2012 13:21:54 +0000 Subject: * ext/dbm/dbm.c (Init_dbm): fix a build error on mswin32. use `extern __declspec(dllimport)` for dll link with VC. [ruby-core:41996] [Bug #5869] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dbm/dbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/dbm') diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index d9a5009764..fbb8bdf869 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -1089,8 +1089,8 @@ Init_dbm(void) /* ndbm.h doesn't declare gdbm_version until gdbm 1.8.3. * See extconf.rb for more information. */ { - extern char *gdbm_version; - rb_define_const(rb_cDBM, "VERSION", rb_str_new2(gdbm_version)); + RUBY_EXTERN char *gdbm_version; + rb_define_const(rb_cDBM, "VERSION", rb_str_new2(gdbm_version)); } #elif defined(HAVE_DPVERSION) rb_define_const(rb_cDBM, "VERSION", rb_sprintf("QDBM %s", dpversion)); -- cgit v1.2.3