]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.735 v7.3.735
authorBram Moolenaar <Bram@vim.org>
Wed, 28 Nov 2012 15:18:29 +0000 (16:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 28 Nov 2012 15:18:29 +0000 (16:18 +0100)
Problem:    Cannot build Ruby 1.9 with MingW or Cygwin.
Solution:   Add another include directory. (Ken Takata)

src/Make_cyg.mak
src/Make_ming.mak
src/version.c

index 1c6ceda0c4c2a9c44cd778d66847eba58a47bc59..a56141662f86c346d388b1b49497418a70596f62 100644 (file)
 #   TCL_VER    define to version of TCL being used (83)
 #   DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes)
 # RUBY         define to path to Ruby dir to get Ruby support (not defined)
-#   RUBY_VER   define to version of Ruby being used (16)
+#   RUBY_VER           define to version of Ruby being used (16)
+#   RUBY_VER_LONG      same, but in format with dot. (1.6)
+#          You must set RUBY_VER_LONG when changing RUBY_VER.
+#          You must set RUBY_API_VER version to RUBY_VER_LONG.
+#          Don't set ruby API version to RUBY_VER like 191.
 #   DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes)
 # MZSCHEME     define to path to MzScheme dir to get MZSCHEME support (not defined)
 #   MZSCHEME_VER      define to version of MzScheme being used (209_000)
@@ -217,8 +221,15 @@ RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
 endif
 endif
 
+ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
+RUBY_19_OR_LATER = 1
+endif
+
 DEFINES += -DFEAT_RUBY
 INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
+ifdef RUBY_19_OR_LATER
+INCLUDES += -I$(RUBY)/include/ruby-$(RUBY_VER_LONG) -I$(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
+endif
 EXTRA_OBJS += $(OUTDIR)/if_ruby.o
 
 ifeq (yes, $(DYNAMIC_RUBY))
index 8e523a24e375a2463943151864949787bcbe1305..9402ccce7ad1a42a477948a23efaaaefb9b6d976 100644 (file)
@@ -301,7 +301,14 @@ RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
 endif
 endif
 
-RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
+ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
+RUBY_19_OR_LATER = 1
+endif
+
+RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
+ifdef RUBY_19_OR_LATER
+RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
+endif
 ifeq (no, $(DYNAMIC_RUBY))
 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
 endif
index 87762a9781e0c41c3326962652737e38a93e8aa9..80c82d64483b96be6a47e2ab7e199acdfa9f6d5e 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    735,
 /**/
     734,
 /**/