jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.148

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