libraries/ltkutils/src/w32crack.cpp
changeset 69 849a0b46c767
parent 0 7f656887cf89
--- a/libraries/ltkutils/src/w32crack.cpp	Wed Oct 13 15:07:15 2010 +0100
+++ b/libraries/ltkutils/src/w32crack.cpp	Sun Oct 17 18:43:12 2010 +0100
@@ -10,12 +10,22 @@
 // Accenture - Initial contribution
 //
 
+#include <e32base.h>
+#include <e32property.h>
 #include <fshell/common.mmh>
 #include <fshell/ltkutils.h>
-#include <e32base.h>
 #include <fshell/iocli.h>
+
+#if !defined(FSHELL_WSERV_SUPPORT) || !defined(FSHELL_MEMORY_ACCESS_SUPPORT)
+
+EXPORT_C void LtkUtils::W32CrackL()
+	{
+	User::Leave(KErrNotSupported);
+	}
+
+#else
+
 #include <w32std.h>
-#include <fshell/ioutils.h>
 #include <fshell/memoryaccess.h>
 
 //
@@ -25,10 +35,6 @@
 //
 EXPORT_C void LtkUtils::W32CrackL()
 	{
-#ifndef FSHELL_WSERV_SUPPORT
-	User::Leave(KErrNotSupported);
-#else
-
 	// Check if P&S says it's already enabled, if so no need to do anything
 	if (W32CrackIsEnabled()) return;
 
@@ -111,9 +117,10 @@
 	// cleanup
 	CleanupStack::PopAndDestroy(4, &fs);
 
-#endif // FSHELL_WSERV_SUPPORT
 	}
 
+#endif // supported
+
 EXPORT_C TBool LtkUtils::W32CrackIsEnabled()
 	{
 	TInt enabled = EFalse;