]> granicus.if.org Git - gc/commitdiff
Fix undefined HEAP_START in register_dynamic_libraries
authorIvan Maidanski <ivmai@mail.ru>
Wed, 2 Aug 2017 21:37:09 +0000 (00:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 8 Aug 2017 07:46:51 +0000 (10:46 +0300)
* include/private/gcconfig.h [!HEAP_START] (HEAP_START): Define to 0 by
default (if not previously defined in the file).
* os_dep.c (HEAP_START): Remove.

include/private/gcconfig.h
os_dep.c

index 588f7366dba8c361b722c8afce276e9166dec957..af8a1ec81df244950919c31f589538ea6c62ee64 100644 (file)
 # define DATASTART GC_data_start
 #endif
 
+#ifndef HEAP_START
+# define HEAP_START ((ptr_t)0)
+#endif
+
 #ifndef CLEAR_DOUBLE
 # define CLEAR_DOUBLE(x) (((word*)(x))[0] = 0, ((word*)(x))[1] = 0)
 #endif
index cf1adc879dd596f39bde806aed9bd9725c32e114..6f59efdba96df665e78444ab07ac46467e035558 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -2033,10 +2033,6 @@ void GC_register_data_segments(void)
 # define OPT_MAP_ANON 0
 #endif
 
-#ifndef HEAP_START
-#   define HEAP_START ((ptr_t)0)
-#endif
-
 #ifdef SYMBIAN
   extern char* GC_get_private_path_and_zero_file(void);
 #endif