]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.148 v7.4.148
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Jan 2014 12:26:21 +0000 (13:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Jan 2014 12:26:21 +0000 (13:26 +0100)
Problem:    Cannot build with Cygwin and X11.
Solution:   Include Xwindows.h instead of windows.h. (Lech Lorens)

src/mbyte.c
src/version.c

index 6340992de414a171bc9a7669001b91ba8eba3fff..cb14a25fad6bc178f88e6d63afe77e42b7a14686 100644 (file)
 # ifndef WIN32_LEAN_AND_MEAN
 #  define WIN32_LEAN_AND_MEAN
 # endif
-# include <windows.h>
+# if defined(FEAT_GUI) || defined(FEAT_XCLIPBOARD)
+#  include <X11/Xwindows.h>
+#  define WINBYTE wBYTE
+# else
+#  include <windows.h>
+#  define WINBYTE BYTE
+# endif
 # ifdef WIN32
 #  undef WIN32     /* Some windows.h define WIN32, we don't want that here. */
 # endif
+#else
+# define WINBYTE BYTE
 #endif
 
 #if (defined(WIN3264) || defined(WIN32UNIX)) && !defined(__MINGW32__)
@@ -698,7 +706,7 @@ codepage_invalid:
            /* enc_dbcs is set by setting 'fileencoding'.  It becomes a Windows
             * CodePage identifier, which we can pass directly in to Windows
             * API */
-           n = IsDBCSLeadByteEx(enc_dbcs, (BYTE)i) ? 2 : 1;
+           n = IsDBCSLeadByteEx(enc_dbcs, (WINBYTE)i) ? 2 : 1;
 #else
 # if defined(MACOS) || defined(__amigaos4__)
            /*
index c9fa779e06b2ff830ac29c244a9207fed32ae98e..6d2a928949cbd55c21f82a42ba18f0e244e1f0f2 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    148,
 /**/
     147,
 /**/