home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.148 < prev    next >
Encoding:
Internet Message Format  |  2014-01-13  |  2.5 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.148
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.148
  11. Problem:    Cannot build with Cygwin and X11.
  12. Solution:   Include Xwindows.h instead of windows.h. (Lech Lorens)
  13. Files:        src/mbyte.c
  14.  
  15.  
  16. *** ../vim-7.4.147/src/mbyte.c    2013-11-12 04:43:57.000000000 +0100
  17. --- src/mbyte.c    2014-01-14 13:21:36.000000000 +0100
  18. ***************
  19. *** 83,92 ****
  20.   # ifndef WIN32_LEAN_AND_MEAN
  21.   #  define WIN32_LEAN_AND_MEAN
  22.   # endif
  23. ! # include <windows.h>
  24.   # ifdef WIN32
  25.   #  undef WIN32        /* Some windows.h define WIN32, we don't want that here. */
  26.   # endif
  27.   #endif
  28.   
  29.   #if (defined(WIN3264) || defined(WIN32UNIX)) && !defined(__MINGW32__)
  30. --- 83,100 ----
  31.   # ifndef WIN32_LEAN_AND_MEAN
  32.   #  define WIN32_LEAN_AND_MEAN
  33.   # endif
  34. ! # if defined(FEAT_GUI) || defined(FEAT_XCLIPBOARD)
  35. ! #  include <X11/Xwindows.h>
  36. ! #  define WINBYTE wBYTE
  37. ! # else
  38. ! #  include <windows.h>
  39. ! #  define WINBYTE BYTE
  40. ! # endif
  41.   # ifdef WIN32
  42.   #  undef WIN32        /* Some windows.h define WIN32, we don't want that here. */
  43.   # endif
  44. + #else
  45. + # define WINBYTE BYTE
  46.   #endif
  47.   
  48.   #if (defined(WIN3264) || defined(WIN32UNIX)) && !defined(__MINGW32__)
  49. ***************
  50. *** 698,704 ****
  51.           /* enc_dbcs is set by setting 'fileencoding'.  It becomes a Windows
  52.            * CodePage identifier, which we can pass directly in to Windows
  53.            * API */
  54. !         n = IsDBCSLeadByteEx(enc_dbcs, (BYTE)i) ? 2 : 1;
  55.   #else
  56.   # if defined(MACOS) || defined(__amigaos4__)
  57.           /*
  58. --- 706,712 ----
  59.           /* enc_dbcs is set by setting 'fileencoding'.  It becomes a Windows
  60.            * CodePage identifier, which we can pass directly in to Windows
  61.            * API */
  62. !         n = IsDBCSLeadByteEx(enc_dbcs, (WINBYTE)i) ? 2 : 1;
  63.   #else
  64.   # if defined(MACOS) || defined(__amigaos4__)
  65.           /*
  66. *** ../vim-7.4.147/src/version.c    2014-01-14 13:18:53.000000000 +0100
  67. --- src/version.c    2014-01-14 13:24:17.000000000 +0100
  68. ***************
  69. *** 740,741 ****
  70. --- 740,743 ----
  71.   {   /* Add new patch number below this line */
  72. + /**/
  73. +     148,
  74.   /**/
  75.  
  76. -- 
  77. hundred-and-one symptoms of being an internet addict:
  78. 154. You fondle your mouse.
  79.  
  80.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  81. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  82. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  83.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  84.