# HG changeset patch # User arunabha # Date 1267104013 0 # Node ID 367a7503090914e8fc2682fa922cb8e2c727c06e # Parent 0b53155cb38ad7975e7157674e07c0b043c3ff32 fix for Bug 339 - [GCCE] gcce doesn't understand __weak keyword diff -r 0b53155cb38a -r 367a75030909 kernel/eka/euser/epoc/arm/uc_dll.cpp --- a/kernel/eka/euser/epoc/arm/uc_dll.cpp Thu Feb 25 13:16:02 2010 +0000 +++ b/kernel/eka/euser/epoc/arm/uc_dll.cpp Thu Feb 25 13:20:13 2010 +0000 @@ -44,11 +44,11 @@ return 0; } -#elif defined(__ARMCC__) +#elif defined(__EABI__) void __DLL_Export_Table__(void); void __cpp_initialize__aeabi_(void); -__weak void run_static_dtors(void); +__WEAK__ void run_static_dtors(void); GLDEF_C TInt _E32Dll_Body(TInt aReason) { diff -r 0b53155cb38a -r 367a75030909 kernel/eka/euser/epoc/arm/uc_exe.cpp --- a/kernel/eka/euser/epoc/arm/uc_exe.cpp Thu Feb 25 13:16:02 2010 +0000 +++ b/kernel/eka/euser/epoc/arm/uc_exe.cpp Thu Feb 25 13:20:13 2010 +0000 @@ -70,11 +70,11 @@ } } -#elif defined(__ARMCC__) +#elif defined(__EABI__) TInt CallThrdProcEntry(TInt (*aFn)(void*), void* aPtr, TInt aNotFirst); -__weak void run_static_dtors(void); +__WEAK__ void run_static_dtors(void); void globalDestructorFunc() {