summaryrefslogtreecommitdiffstats
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-11 15:28:50 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-11 15:28:50 +0100
commit825b55e695b842beb6515ec5c53583aac9efe7b7 (patch)
treebaaeb35a1ee9b5be523284f7fa8185f52b95860d /src/mbyte.c
parent4a7724a4406f639edd3f93f3542626811cf56719 (diff)
patch 8.2.4736: build problem for Cygwin with Motifv8.2.4736
Problem: Build problem for Cygwin with Motif. Solution: Undefine ControlMask. (Kelvin Lee, closes #10152)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index 78230f65e7..2b7f9991ae 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -84,6 +84,11 @@
# define WIN32_LEAN_AND_MEAN
# endif
# if defined(FEAT_GUI) || defined(FEAT_XCLIPBOARD)
+# ifdef __CYGWIN__
+ // ControlMask from <X11/X.h> (included in "vim.h") is conflicting with
+ // <w32api/windows.h> (included in <X11/Xwindows.h>).
+# undef ControlMask
+# endif
# include <X11/Xwindows.h>
# define WINBYTE wBYTE
# else