]> granicus.if.org Git - vim/commitdiff
patch 8.1.1174: cannot build with Ruby 1.8 v8.1.1174
authorBram Moolenaar <Bram@vim.org>
Sun, 14 Apr 2019 17:42:13 +0000 (19:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 14 Apr 2019 17:42:13 +0000 (19:42 +0200)
Problem:    Cannot build with Ruby 1.8. (Tom G. Christensen)
Solution:   Include ruby/st.h. (Ozaki Kiichi, closes #4257)

src/if_ruby.c
src/version.c

index 2727524f89a70e7dd13b95a31b64e992ef59b709..6779c234389a12beaad4f459e563c803cd135340 100644 (file)
 #ifdef RUBY19_OR_LATER
 # include <ruby/encoding.h>
 #endif
+#ifndef RUBY19_OR_LATER
+# include <st.h>  // for ST_STOP and ST_CONTINUE
+#endif
 
-#undef off_t   /* ruby defines off_t as _int64, Mingw uses long */
+#undef off_t   // ruby defines off_t as _int64, Mingw uses long
 #undef EXTERN
 #undef _
 
index bc12aae17cdb6b884f84e4e5cd961d83135cddf4..54c15f3108fc095a74f73c3fc5642efc55540ac7 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1174,
 /**/
     1173,
 /**/