00001 /* 00002 * ============================================================================== 00003 * Name : staticlibinit_gcce.h 00004 * Part of : libc library 00005 * Description : Used to remove the static library linking problem on gcce platform 00006 * Version : 1.0 00007 * 00008 * Copyright © 2006 Nokia Corporation 00009 * All rights reserved. 00010 * 00011 * Redistribution and use in source and binary forms, with or without 00012 * modification, are permitted provided that the following conditions are met: 00013 * Redistributions of source code must retain the above copyright notice, this 00014 * list of conditions and the following disclaimer. 00015 * Redistributions in binary form must reproduce the above copyright notice, 00016 * this list of conditions and the following disclaimer in the documentation 00017 * and/or other materials provided with the distribution. 00018 * Neither the name of the <ORGANIZATION> nor the names of its contributors 00019 * may be used to endorse or promote products derived from this software 00020 * without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00023 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00024 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00025 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 00026 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00027 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00028 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00029 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00030 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00031 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00032 * ============================================================================== 00033 */ 00034 00035 #ifndef STATIC_LIB_INIT_GCCE_H 00036 #define STATIC_LIB_INIT_GCCE_H 00037 00038 #include <e32def.h> 00039 #pragma once 00040 00041 /* 00042 *It'a dummy method used to fix GCCE toolchain problem for static libraries. 00043 */ 00044 #ifdef __GCCE__ 00045 extern "C" GLDEF_C int __GccGlueInit(); 00046 void _GcceInit() 00047 { 00048 __GccGlueInit(); 00049 } 00050 // __GCCE__ 00051 #endif 00052 00053 //STATIC_LIB_INIT_GCCE_H 00054 #endif 00055 00056 // End of file