summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2010-10-10 17:08:43 +0200
committerBram Moolenaar <bram@vim.org>2010-10-10 17:08:43 +0200
commit62de2ea87f51d3e5cb6c7ff94f7b789e07251536 (patch)
tree032cef535756c21572919d40a9c782a451b5fb73
parent3b523026aae5928b91121d2c7ff1aaaadb289a27 (diff)
downloadvim-62de2ea87f51d3e5cb6c7ff94f7b789e07251536.tar.gz
updated for version 7.3.021v7.3.021v7-3-021
Problem: Conflict for defining Boolean in Mac header files. Solution: Define NO_X11_INCLUDES. (Rainer Muller)
-rw-r--r--src/os_macosx.m4
-rw-r--r--src/version.c2
-rw-r--r--src/vim.h4
3 files changed, 8 insertions, 2 deletions
diff --git a/src/os_macosx.m b/src/os_macosx.m
index 4ad8d26a..1d88e7dc 100644
--- a/src/os_macosx.m
+++ b/src/os_macosx.m
@@ -15,6 +15,10 @@
Error: MACOS 9 is no longer supported in Vim 7
#endif
+/* Avoid a conflict for the definition of Boolean between Mac header files and
+ * X11 header files. */
+#define NO_X11_INCLUDES
+
#include "vim.h"
#import <Cocoa/Cocoa.h>
diff --git a/src/version.c b/src/version.c
index 6d19c82c..46e278d5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 21,
+/**/
20,
/**/
19,
diff --git a/src/vim.h b/src/vim.h
index b9ce3255..6c846c1d 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -192,8 +192,8 @@
#endif
#ifdef NO_X11_INCLUDES
- /* In os_mac_conv.c NO_X11_INCLUDES is defined to avoid X11 headers.
- * Disable all X11 related things to avoid conflicts. */
+ /* In os_mac_conv.c and os_macosx.m NO_X11_INCLUDES is defined to avoid
+ * X11 headers. Disable all X11 related things to avoid conflicts. */
# ifdef FEAT_X11
# undef FEAT_X11
# endif