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