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

ruby-changes:15912

From: nobu <ko1@a...>
Date: Mon, 17 May 2010 01:23:28 +0900 (JST)
Subject: [ruby-changes:15912] Ruby:r27853 (trunk): * dln.c (dln_load): check imported addresses only when compiled

nobu	2010-05-17 01:23:19 +0900 (Mon, 17 May 2010)

  New Revision: 27853

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

  Log:
    * dln.c (dln_load): check imported addresses only when compiled
      for ruby.

  Modified files:
    trunk/dln.c

Index: dln.c
===================================================================
--- dln.c	(revision 27852)
+++ dln.c	(revision 27853)
@@ -1265,11 +1265,13 @@
 	goto failed;
     }
 
+#if defined _WIN32 && defined RUBY_EXPORT
     if (!rb_w32_check_imported(handle, rb_libruby_handle())) {
 	FreeLibrary(handle);
 	error = "incompatible library version";
 	goto failed;
     }
+#endif
 
     if ((init_fct = (void(*)())GetProcAddress(handle, buf)) == NULL) {
 	dln_loaderror("%s - %s\n%s", dln_strerror(), buf, file);

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

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