jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.148

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.148
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.148
3ef2ca
Problem:    Cannot build with Cygwin and X11.
3ef2ca
Solution:   Include Xwindows.h instead of windows.h. (Lech Lorens)
3ef2ca
Files:	    src/mbyte.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.147/src/mbyte.c	2013-11-12 04:43:57.000000000 +0100
3ef2ca
--- src/mbyte.c	2014-01-14 13:21:36.000000000 +0100
3ef2ca
***************
3ef2ca
*** 83,92 ****
3ef2ca
  # ifndef WIN32_LEAN_AND_MEAN
3ef2ca
  #  define WIN32_LEAN_AND_MEAN
3ef2ca
  # endif
3ef2ca
! # include <windows.h>
3ef2ca
  # ifdef WIN32
3ef2ca
  #  undef WIN32	    /* Some windows.h define WIN32, we don't want that here. */
3ef2ca
  # endif
3ef2ca
  #endif
3ef2ca
  
3ef2ca
  #if (defined(WIN3264) || defined(WIN32UNIX)) && !defined(__MINGW32__)
3ef2ca
--- 83,100 ----
3ef2ca
  # ifndef WIN32_LEAN_AND_MEAN
3ef2ca
  #  define WIN32_LEAN_AND_MEAN
3ef2ca
  # endif
3ef2ca
! # if defined(FEAT_GUI) || defined(FEAT_XCLIPBOARD)
3ef2ca
! #  include <X11/Xwindows.h>
3ef2ca
! #  define WINBYTE wBYTE
3ef2ca
! # else
3ef2ca
! #  include <windows.h>
3ef2ca
! #  define WINBYTE BYTE
3ef2ca
! # endif
3ef2ca
  # ifdef WIN32
3ef2ca
  #  undef WIN32	    /* Some windows.h define WIN32, we don't want that here. */
3ef2ca
  # endif
3ef2ca
+ #else
3ef2ca
+ # define WINBYTE BYTE
3ef2ca
  #endif
3ef2ca
  
3ef2ca
  #if (defined(WIN3264) || defined(WIN32UNIX)) && !defined(__MINGW32__)
3ef2ca
***************
3ef2ca
*** 698,704 ****
3ef2ca
  	    /* enc_dbcs is set by setting 'fileencoding'.  It becomes a Windows
3ef2ca
  	     * CodePage identifier, which we can pass directly in to Windows
3ef2ca
  	     * API */
3ef2ca
! 	    n = IsDBCSLeadByteEx(enc_dbcs, (BYTE)i) ? 2 : 1;
3ef2ca
  #else
3ef2ca
  # if defined(MACOS) || defined(__amigaos4__)
3ef2ca
  	    /*
3ef2ca
--- 706,712 ----
3ef2ca
  	    /* enc_dbcs is set by setting 'fileencoding'.  It becomes a Windows
3ef2ca
  	     * CodePage identifier, which we can pass directly in to Windows
3ef2ca
  	     * API */
3ef2ca
! 	    n = IsDBCSLeadByteEx(enc_dbcs, (WINBYTE)i) ? 2 : 1;
3ef2ca
  #else
3ef2ca
  # if defined(MACOS) || defined(__amigaos4__)
3ef2ca
  	    /*
3ef2ca
*** ../vim-7.4.147/src/version.c	2014-01-14 13:18:53.000000000 +0100
3ef2ca
--- src/version.c	2014-01-14 13:24:17.000000000 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     148,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
hundred-and-one symptoms of being an internet addict:
3ef2ca
154. You fondle your mouse.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///