mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dbm/dbm.c (DBM::VERSION): define it by detecting _GDBM_H_ or
_DBM_IOERR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6227690604
commit
e7a1d4a309
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 18 12:50:59 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/dbm/dbm.c (DBM::VERSION): define it by detecting _GDBM_H_ or
|
||||
_DBM_IOERR.
|
||||
|
||||
Sat Feb 18 07:52:45 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* tool/enc-unicode.rb: don't use 1.9 feature on tools.
|
||||
|
|
|
@ -1096,6 +1096,10 @@ Init_dbm(void)
|
|||
rb_define_const(rb_cDBM, "VERSION", rb_sprintf("QDBM %s", dpversion));
|
||||
#elif defined(_DB_H_)
|
||||
rb_define_const(rb_cDBM, "VERSION", rb_str_new2("Berkeley DB (unknown)"));
|
||||
#elif defined(_GDBM_H_)
|
||||
rb_define_const(rb_cDBM, "VERSION", rb_str_new2("GDBM (unknown)"));
|
||||
#elif defined(_DBM_IOERR)
|
||||
rb_define_const(rb_cDBM, "VERSION", rb_str_new2("NDBM (4.3BSD)"));
|
||||
#else
|
||||
rb_define_const(rb_cDBM, "VERSION", rb_str_new2("unknown"));
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue