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: sl@0: #include sl@0: sl@0: #ifdef __WINSCW__ sl@0: #include // For emulator WSD API sl@0: const TUid KLibmUid3 = {0x102750d2}; sl@0: #endif //__WINSCW__ sl@0: sl@0: #ifdef __cplusplus sl@0: extern "C" sl@0: { sl@0: #endif sl@0: sl@0: #ifdef __WINSCW__ sl@0: sl@0: typedef struct sl@0: { sl@0: int _signgam; sl@0: }_libm_wsd; sl@0: sl@0: TInt InitWSDVar(_libm_wsd* p) sl@0: { sl@0: p->_signgam = 0; sl@0: return KErrNone; sl@0: } sl@0: sl@0: _libm_wsd* GetGlobals() sl@0: { sl@0: // Access the PLS of this process sl@0: _libm_wsd* p = Pls<_libm_wsd>(KLibmUid3, &InitWSDVar); sl@0: return p; sl@0: } sl@0: sl@0: #endif //__WINSCW__ sl@0: sl@0: EXPORT_C int* __signgam() sl@0: { sl@0: #ifdef __WINSCW__ sl@0: return &(GetGlobals()->_signgam); sl@0: #else sl@0: extern int _signgam; sl@0: return &_signgam; sl@0: #endif //__WINSCW__ sl@0: } sl@0: sl@0: #ifdef __cplusplus sl@0: } sl@0: #endif