]> 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>
Mon, 7 Aug 2017 22:05:25 +0000 (01:05 +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 bf4b099ad0a32289daa8275e226a03d6dea0e742..0c6e3f143858088543abbf77af7d585d68f6ce30 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 e7e7b282cf6ec5ae94387e846d2bb6dc6aadc6d4..3be096f0d3cb2096669bc3942779ffe47227bd4e 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -2070,10 +2070,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