fix for Bug 339 - [GCCE] gcce doesn't understand __weak keyword Compiler_Compatibility
authorarunabha
Thu, 25 Feb 2010 13:20:13 +0000
branchCompiler_Compatibility
changeset 68 367a75030909
parent 67 0b53155cb38a
child 69 211f5da0b826
fix for Bug 339 - [GCCE] gcce doesn't understand __weak keyword
kernel/eka/euser/epoc/arm/uc_dll.cpp
kernel/eka/euser/epoc/arm/uc_exe.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)
 	{
--- 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()
 	{