Karsten Hopp 1e3c2f
To: vim_dev@googlegroups.com
Karsten Hopp 1e3c2f
Subject: Patch 7.3.046
Karsten Hopp 1e3c2f
Fcc: outbox
Karsten Hopp 1e3c2f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 1e3c2f
Mime-Version: 1.0
Karsten Hopp 1e3c2f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 1e3c2f
Content-Transfer-Encoding: 8bit
Karsten Hopp 1e3c2f
------------
Karsten Hopp 1e3c2f
Karsten Hopp 1e3c2f
Patch 7.3.046 (after 7.3.043)
Karsten Hopp 1e3c2f
Problem:    Can't build Ruby on MS-Windows.
Karsten Hopp 1e3c2f
Solution:   Add #ifdef, don't use WIN3264 before including vim.h.
Karsten Hopp 1e3c2f
Files:	    src/if_ruby.c
Karsten Hopp 1e3c2f
Karsten Hopp 1e3c2f
Karsten Hopp 1e3c2f
*** ../vim-7.3.045/src/if_ruby.c	2010-10-27 16:49:41.000000000 +0200
Karsten Hopp 1e3c2f
--- src/if_ruby.c	2010-10-27 17:37:05.000000000 +0200
Karsten Hopp 1e3c2f
***************
Karsten Hopp 1e3c2f
*** 14,20 ****
Karsten Hopp 1e3c2f
  #include <stdio.h>
Karsten Hopp 1e3c2f
  #include <string.h>
Karsten Hopp 1e3c2f
  
Karsten Hopp 1e3c2f
! #include "auto/config.h"
Karsten Hopp 1e3c2f
  
Karsten Hopp 1e3c2f
  #ifdef _WIN32
Karsten Hopp 1e3c2f
  # if !defined(DYNAMIC_RUBY_VER) || (DYNAMIC_RUBY_VER < 18)
Karsten Hopp 1e3c2f
--- 14,22 ----
Karsten Hopp 1e3c2f
  #include <stdio.h>
Karsten Hopp 1e3c2f
  #include <string.h>
Karsten Hopp 1e3c2f
  
Karsten Hopp 1e3c2f
! #ifdef HAVE_CONFIG_H
Karsten Hopp 1e3c2f
! # include "auto/config.h"
Karsten Hopp 1e3c2f
! #endif
Karsten Hopp 1e3c2f
  
Karsten Hopp 1e3c2f
  #ifdef _WIN32
Karsten Hopp 1e3c2f
  # if !defined(DYNAMIC_RUBY_VER) || (DYNAMIC_RUBY_VER < 18)
Karsten Hopp 1e3c2f
***************
Karsten Hopp 1e3c2f
*** 50,56 ****
Karsten Hopp 1e3c2f
  #  define RUBY_EXPORT
Karsten Hopp 1e3c2f
  # endif
Karsten Hopp 1e3c2f
  
Karsten Hopp 1e3c2f
! #ifndef WIN3264
Karsten Hopp 1e3c2f
  # include <dlfcn.h>
Karsten Hopp 1e3c2f
  # define HINSTANCE void*
Karsten Hopp 1e3c2f
  # define RUBY_PROC void*
Karsten Hopp 1e3c2f
--- 52,58 ----
Karsten Hopp 1e3c2f
  #  define RUBY_EXPORT
Karsten Hopp 1e3c2f
  # endif
Karsten Hopp 1e3c2f
  
Karsten Hopp 1e3c2f
! #if !(defined(WIN32) || defined(_WIN64))
Karsten Hopp 1e3c2f
  # include <dlfcn.h>
Karsten Hopp 1e3c2f
  # define HINSTANCE void*
Karsten Hopp 1e3c2f
  # define RUBY_PROC void*
Karsten Hopp 1e3c2f
*** ../vim-7.3.045/src/version.c	2010-10-27 17:39:00.000000000 +0200
Karsten Hopp 1e3c2f
--- src/version.c	2010-10-27 17:39:59.000000000 +0200
Karsten Hopp 1e3c2f
***************
Karsten Hopp 1e3c2f
*** 716,717 ****
Karsten Hopp 1e3c2f
--- 716,719 ----
Karsten Hopp 1e3c2f
  {   /* Add new patch number below this line */
Karsten Hopp 1e3c2f
+ /**/
Karsten Hopp 1e3c2f
+     46,
Karsten Hopp 1e3c2f
  /**/
Karsten Hopp 1e3c2f
Karsten Hopp 1e3c2f
-- 
Karsten Hopp 1e3c2f
BLACK KNIGHT:  Come on you pansy!
Karsten Hopp 1e3c2f
    [hah] [parry thrust]
Karsten Hopp 1e3c2f
    [ARTHUR chops the BLACK KNIGHT's right arm off]
Karsten Hopp 1e3c2f
ARTHUR:        Victory is mine!  [kneeling]
Karsten Hopp 1e3c2f
               We thank thee Lord, that in thy merc-
Karsten Hopp 1e3c2f
    [Black Knight kicks Arthur in the head while he is praying]
Karsten Hopp 1e3c2f
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 1e3c2f
Karsten Hopp 1e3c2f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 1e3c2f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 1e3c2f
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 1e3c2f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///