From cd78d70b250071372bbbe1bea5433c642b50251e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 24 Feb 2013 22:04:54 +0100 Subject: [PATCH] Put findAppName under _GLFW_USE_MENUBAR. --- src/cocoa_window.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 42330df5..0d709cd7 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -515,6 +515,8 @@ static int convertMacKeyCode(unsigned int macKeyCode) @end +#if defined(_GLFW_USE_MENUBAR) + // Try to figure out what the calling application is called // static NSString* findAppName(void) @@ -557,8 +559,6 @@ static NSString* findAppName(void) return @"GLFW Application"; } -#if defined(_GLFW_USE_MENUBAR) - // Set up the menu bar (manually) // This is nasty, nasty stuff -- calls to undocumented semi-private APIs that // could go away at any moment, lots of stuff that really should be