summaryrefslogtreecommitdiff
path: root/src/nsterm.m
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2011-04-02 09:11:00 +0200
committerJan Djärv <jan.h.d@swipnet.se>2011-04-02 09:11:00 +0200
commit8c74fcbddb64afa9ac8a75562634c80379ff24df (patch)
tree94124cad967534929daec22cf7aa6cfc109034b6 /src/nsterm.m
parent9952e40bd8d90e89143de066ddd8580925040fbe (diff)
downloademacs-8c74fcbddb64afa9ac8a75562634c80379ff24df.tar.gz
emacs-8c74fcbddb64afa9ac8a75562634c80379ff24df.tar.bz2
emacs-8c74fcbddb64afa9ac8a75562634c80379ff24df.zip
* nsterm.m (ns_update_auto_hide_menu_bar): Only for OSX 10.6 or later.
Fixes: debbugs:8403
Diffstat (limited to 'src/nsterm.m')
-rw-r--r--src/nsterm.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 91f0cbba585..f783bbe025f 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -583,6 +583,8 @@ ns_menu_bar_should_be_hidden (void)
static void
ns_update_auto_hide_menu_bar (void)
{
+#ifdef NS_IMPL_COCOA
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
BLOCK_INPUT;
NSTRACE (ns_update_auto_hide_menu_bar);
@@ -615,6 +617,8 @@ ns_update_auto_hide_menu_bar (void)
}
UNBLOCK_INPUT;
+#endif
+#endif
}