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