1.1 --- a/epoc32/include/stdapis/staticlibinit_gcce.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/staticlibinit_gcce.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,64 @@
1.4 -staticlibinit_gcce.h
1.5 +/*
1.6 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description:
1.19 +* Name : staticlibinit_gcce.h
1.20 +* Part of : libc library
1.21 +* Used to remove the static library linking problem on gcce platform
1.22 +* Version : 1.0
1.23 +* All rights reserved.
1.24 +* Redistribution and use in source and binary forms, with or without
1.25 +* modification, are permitted provided that the following conditions are met:
1.26 +* Redistributions of source code must retain the above copyright notice, this
1.27 +* list of conditions and the following disclaimer.
1.28 +* Redistributions in binary form must reproduce the above copyright notice,
1.29 +* this list of conditions and the following disclaimer in the documentation
1.30 +* and/or other materials provided with the distribution.
1.31 +* Neither the name of the <ORGANIZATION> nor the names of its contributors
1.32 +* may be used to endorse or promote products derived from this software
1.33 +* without specific prior written permission.
1.34 +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1.35 +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.36 +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1.37 +* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
1.38 +* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.39 +* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1.40 +* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1.41 +* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1.42 +* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1.43 +* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.44 +*
1.45 +*/
1.46 +
1.47 +
1.48 +
1.49 +#ifndef STATIC_LIB_INIT_GCCE_H
1.50 +#define STATIC_LIB_INIT_GCCE_H
1.51 +
1.52 +#include <e32def.h>
1.53 +#pragma once
1.54 +
1.55 +/*
1.56 + *It'a dummy method used to fix GCCE toolchain problem for static libraries.
1.57 + */
1.58 +#ifdef __GCCE__
1.59 +extern "C" GLDEF_C int __GccGlueInit();
1.60 +void _GcceInit()
1.61 + {
1.62 + __GccGlueInit();
1.63 + }
1.64 +#endif // __GCCE__
1.65 +
1.66 +#endif //STATIC_LIB_INIT_GCCE_H
1.67 +
1.68 +// End of file
1.69 \ No newline at end of file