sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: */ sl@0: sl@0: #include sl@0: sl@0: /** The following 3 function are defined so that the functions IdealLanguage, sl@0: SetIdealLanguage, ReleaseIdealLanguage will compile as part as an .exe sl@0: These functions use a global TAny* to store the data that would have been sl@0: stored in the TLS under normal compilation (ie If the BaUtils was compilled sl@0: as part of a DLL). sl@0: */ sl@0: sl@0: #ifndef __DLL__ sl@0: TAny* ptr(NULL); sl@0: sl@0: TAny* Dll::Tls() sl@0: { sl@0: return ptr; sl@0: } sl@0: sl@0: TInt Dll::SetTls(TAny* aPtr) sl@0: { sl@0: ptr = aPtr; sl@0: return KErrNone; sl@0: } sl@0: sl@0: void Dll::FreeTls() sl@0: { sl@0: ptr = NULL; sl@0: } sl@0: #endif