Ken Takata avatar Ken Takata committed 3f2e55f

add a new patch: fix-ruby20-msvc.patch

Comments (0)

Files changed (2)

fix-ruby20-msvc.patch

+# HG changeset patch
+# Parent 8506c0c94b948d7e1067a2e9e09e9c5b298d9c10
+diff --git a/src/if_ruby.c b/src/if_ruby.c
+--- a/src/if_ruby.c
++++ b/src/if_ruby.c
+@@ -39,6 +39,9 @@
+  */
+ # define rb_cFalseClass		(*dll_rb_cFalseClass)
+ # define rb_cFixnum		(*dll_rb_cFixnum)
++# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
++#  define rb_cFloat		(*dll_rb_cFloat)
++# endif
+ # define rb_cNilClass		(*dll_rb_cNilClass)
+ # define rb_cSymbol		(*dll_rb_cSymbol)
+ # define rb_cTrueClass		(*dll_rb_cTrueClass)
+@@ -249,6 +252,9 @@
+ static VALUE (*dll_rb_assoc_new) (VALUE, VALUE);
+ VALUE *dll_rb_cFalseClass;
+ VALUE *dll_rb_cFixnum;
++#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
++VALUE *dll_rb_cFloat;
++#endif
+ VALUE *dll_rb_cNilClass;
+ static VALUE *dll_rb_cObject;
+ VALUE *dll_rb_cSymbol;
+@@ -373,6 +379,9 @@
+     {"rb_assoc_new", (RUBY_PROC*)&dll_rb_assoc_new},
+     {"rb_cFalseClass", (RUBY_PROC*)&dll_rb_cFalseClass},
+     {"rb_cFixnum", (RUBY_PROC*)&dll_rb_cFixnum},
++#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
++    {"rb_cFloat", (RUBY_PROC*)&dll_rb_cFloat},
++#endif
+     {"rb_cNilClass", (RUBY_PROC*)&dll_rb_cNilClass},
+     {"rb_cObject", (RUBY_PROC*)&dll_rb_cObject},
+     {"rb_cSymbol", (RUBY_PROC*)&dll_rb_cSymbol},
 use-proto.diff
 gfw-bold-italic.patch
 cpo-N.diff
+fix-ruby20-msvc.patch
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.