mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
1aa408971f
commit
9678dce5a4
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
Tue Jan 10 21:57:38 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* 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]
|
||||
|
||||
Tue Jan 10 15:31:55 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* vm.c (vm_exec): refix r34162; suppress warning and add description.
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue