Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/heap.h')
-rw-r--r--winsup/cygwin/heap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/heap.h b/winsup/cygwin/heap.h
index bcea4bae0..b497dd3a4 100644
--- a/winsup/cygwin/heap.h
+++ b/winsup/cygwin/heap.h
@@ -15,5 +15,6 @@ void heap_init ();
void malloc_init ();
#define inheap(s) \
- (cygheap->heapptr && s && ((char *) (s) >= (char *) cygheap->heapbase) \
- && ((char *) (s) <= (char *) cygheap->heaptop))
+ (cygheap->user_heap.ptr && s \
+ && ((char *) (s) >= (char *) cygheap->user_heap.base) \
+ && ((char *) (s) <= (char *) cygheap->user_heap.top))