]> granicus.if.org Git - gc/commitdiff
Select GC_REGISTER_MAIN_STATIC_DATA behavior in build script (Symbian)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 20 Mar 2012 18:35:51 +0000 (22:35 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 20 Mar 2012 18:35:51 +0000 (22:35 +0400)
* build/s60v3/libgc.mmp (GC_DONT_REGISTER_MAIN_STATIC_DATA): Define
macro.
* misc.c (GC_REGISTER_MAIN_STATIC_DATA): Do not define specially for
SYMBIAN.

build/s60v3/libgc.mmp
misc.c

index efff7b0f340e99719722f7056139bf8738fb1b93..4a91894f932703638e6b089e06319bcc00977730 100644 (file)
@@ -18,6 +18,7 @@ CAPABILITY PowerMgmt ReadDeviceData ReadUserData WriteDeviceData WriteUserData S
 MACRO ALL_INTERIOR_POINTERS
 MACRO NO_EXECUTE_PERMISSION
 MACRO USE_MMAP
+MACRO GC_DONT_REGISTER_MAIN_STATIC_DATA
 MACRO GC_DLL
 MACRO GC_BUILD
 MACRO SYMBIAN
diff --git a/misc.c b/misc.c
index 8d9bce3e5dd78a4904659e776320066b75bbc4b8..c5e64eeca61d158f5303276446818c5a1ad34105 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -63,8 +63,6 @@
 # define GC_REGISTER_MAIN_STATIC_DATA() GC_register_main_static_data()
 #elif defined(GC_DONT_REGISTER_MAIN_STATIC_DATA)
 # define GC_REGISTER_MAIN_STATIC_DATA() FALSE
-#elif defined(SYMBIAN)
-# define GC_REGISTER_MAIN_STATIC_DATA() FALSE
 #else
   /* Don't unnecessarily call GC_register_main_static_data() in case    */
   /* dyn_load.c isn't linked in.                                        */