From 109652ba7e1547a5bbe47602941fbd447b039601 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 3 Aug 2017 00:37:09 +0300 Subject: [PATCH] Fix undefined HEAP_START in register_dynamic_libraries * 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 | 4 ++++ os_dep.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 588f7366..af8a1ec8 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2706,6 +2706,10 @@ # 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 diff --git a/os_dep.c b/os_dep.c index cf1adc87..6f59efdb 100644 --- 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 -- 2.40.0