summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2010-08-14 21:56:42 +0200
committerBram Moolenaar <bram@vim.org>2010-08-14 21:56:42 +0200
commit511e31c3221664a9f983130f5f2687fcbd414050 (patch)
treeace505abd94273999350170a03698b80017fcab1
parent470e90261e389909b9f0196a41c07818590e33dd (diff)
downloadvim-511e31c3221664a9f983130f5f2687fcbd414050.tar.gz
Fix building the Mac version with GUI.
-rw-r--r--src/Makefile3
-rw-r--r--src/gui_mac.c6
-rw-r--r--src/os_macosx.m7
-rw-r--r--src/proto/gui_mac.pro1
4 files changed, 16 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 00306b93..5719b3c8 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -357,6 +357,9 @@ CClink = $(CC)
#CONF_OPT_GUI = --enable-gui=athena
#CONF_OPT_GUI = --enable-gui=nextaw
+# Carbon GUI for Mac OS X
+#CONF_OPT_GUI = --enable-gui=carbon
+
# DARWIN - detecting Mac OS X
# Uncomment this line when you want to compile a Unix version of Vim on
# Darwin. None of the Mac specific options or files will be used.
diff --git a/src/gui_mac.c b/src/gui_mac.c
index 2f0f7f86..d83a1379 100644
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -2597,6 +2597,12 @@ bail:
return CallNextEventHandler(nextHandler, theEvent);
}
+ void
+gui_mch_mousehide(int hide)
+{
+ /* TODO */
+}
+
#if 0
/*
diff --git a/src/os_macosx.m b/src/os_macosx.m
index 34a70121..08997e56 100644
--- a/src/os_macosx.m
+++ b/src/os_macosx.m
@@ -19,7 +19,12 @@
#import <Cocoa/Cocoa.h>
-#ifdef FEAT_CLIPBOARD
+/*
+ * Clipboard support for the console.
+ * Don't include this when building the GUI version, the functions in
+ * gui_mac.c are used then.
+ */
+#if defined(FEAT_CLIPBOARD) && !defined(FEAT_GUI)
/* Used to identify clipboard data copied from Vim. */
diff --git a/src/proto/gui_mac.pro b/src/proto/gui_mac.pro
index 29ab9d38..ba6e2ad4 100644
--- a/src/proto/gui_mac.pro
+++ b/src/proto/gui_mac.pro
@@ -139,6 +139,7 @@ void gui_mac_doKeyEvent __ARGS((EventRecord *theEvent));
void gui_mac_doMouseDownEvent __ARGS((EventRecord *theEvent));
void gui_mac_doMouseMovedEvent __ARGS((EventRecord *event));
void gui_mac_doMouseUpEvent __ARGS((EventRecord *theEvent));
+void gui_mch_mousehide __ARGS((int hide));
int C2PascalString (char_u *CString, Str255 *PascalString);
int GetFSSpecFromPath ( char_u *file, FSSpec *fileFSSpec);