From d07738ee1dc2667ee010031028461e89c78800ff Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 30 Oct 2011 13:46:43 +0000 Subject: [PATCH] Apply the same fix as r42996 for the suspend string as well. Fixes build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42997 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskbar/BeMenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/deskbar/BeMenu.cpp b/src/apps/deskbar/BeMenu.cpp index 240500e6f8..206076601a 100644 --- a/src/apps/deskbar/BeMenu.cpp +++ b/src/apps/deskbar/BeMenu.cpp @@ -310,8 +310,10 @@ TBeMenu::AddStandardBeMenuItems() item->SetEnabled(!dragging); shutdownMenu->AddItem(item); - // String outside of ifdef block for collectcatkeys purposes +#if defined(APM_SUPPORT) || defined(B_COLLECTING_CATKEYS) static const char* kSuspendMenuItemStr = B_TRANSLATE_MARK("Suspend"); +#endif + #ifdef APM_SUPPORT if (_kapm_control_(APM_CHECK_ENABLED) == B_OK) { item = new BMenuItem(B_TRANSLATE_NOCOLLECT(kSuspendMenuItemStr),