summaryrefslogtreecommitdiff
path: root/ext/dbm
diff options
context:
space:
mode:
authorshirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-10 13:21:54 +0000
committershirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-10 13:21:54 +0000
commit9678dce5a41e14c4a4b3148c8f8a575e01a9d44f (patch)
treeb9140446f0d3399f1cbaa5033f8e71de85b65492 /ext/dbm
parent1aa408971f36db70447c816a805ca97fc10a4b46 (diff)
* 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
Diffstat (limited to 'ext/dbm')
-rw-r--r--ext/dbm/dbm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index d9a5009..fbb8bdf 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));