[前][次][番号順一覧][スレッド一覧]

ruby-changes:22216

From: shirosaki <ko1@a...>
Date: Tue, 10 Jan 2012 22:22:06 +0900 (JST)
Subject: [ruby-changes:22216] shirosaki:r34265 (trunk): * ext/dbm/dbm.c (Init_dbm): fix a build error on mswin32.

shirosaki	2012-01-10 22:21:54 +0900 (Tue, 10 Jan 2012)

  New Revision: 34265

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34265

  Log:
    * 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]

  Modified files:
    trunk/ChangeLog
    trunk/ext/dbm/dbm.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34264)
+++ ChangeLog	(revision 34265)
@@ -1,3 +1,9 @@
+Tue Jan 10 21:57:38 2012  Hiroshi Shirosaki <h.shirosaki@g...>
+
+	* 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@r...>
 
 	* vm.c (vm_exec): refix r34162; suppress warning and add description.
Index: ext/dbm/dbm.c
===================================================================
--- ext/dbm/dbm.c	(revision 34264)
+++ ext/dbm/dbm.c	(revision 34265)
@@ -1089,8 +1089,8 @@
     /* 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));

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]