commands/screenmode/screenmode.cpp
changeset 80 562156073bab
parent 76 2f382fb2036c
--- a/commands/screenmode/screenmode.cpp	Thu Oct 28 21:02:49 2010 +0100
+++ b/commands/screenmode/screenmode.cpp	Tue Nov 02 20:41:36 2010 +0000
@@ -12,7 +12,8 @@
 
 #include <fshell/common.mmh>
 
-#if defined (FSHELL_PLATFORM_S60) && FSHELL_PLATFORM_S60 >= 5
+#if defined(FSHELL_GUI_SUPPORT) && defined (FSHELL_PLATFORM_S60) && FSHELL_PLATFORM_S60 >= 5
+#define AKNCAP_SUPPORT
 #include <AknCapServerClient.h>	//for screen orientation change
 #endif
 
@@ -209,7 +210,7 @@
 //
 void CCmdScreenMode::DoRotateL()
 	{
-#if defined (FSHELL_PLATFORM_S60) && FSHELL_PLATFORM_S60 >= 5
+#ifdef AKNCAP_SUPPORT
 	TInt err;
 	RAknUiServer akSrv;
 	err = akSrv.Connect();