summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/heap.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-09 20:00:29 +0000
committerChristopher Faylor <me@cgf.cx>2001-09-09 20:00:29 +0000
commit3800a9e7d7906a46433c33eb8694b93b1c78bc6f (patch)
tree88e460d3e8f870f0ff10ce7b39a5ae7a1172a526 /winsup/cygwin/heap.h
parentde05a524ca9636914d8c228551f27feb6b509c4d (diff)
downloadcygnal-3800a9e7d7906a46433c33eb8694b93b1c78bc6f.tar.gz
cygnal-3800a9e7d7906a46433c33eb8694b93b1c78bc6f.tar.bz2
cygnal-3800a9e7d7906a46433c33eb8694b93b1c78bc6f.zip
* heap.h (inheap): Rewrite macro to accomodate removal of brk macros below.
Diffstat (limited to 'winsup/cygwin/heap.h')
-rw-r--r--winsup/cygwin/heap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/heap.h b/winsup/cygwin/heap.h
index 96046cbb9..ce16e1333 100644
--- a/winsup/cygwin/heap.h
+++ b/winsup/cygwin/heap.h
@@ -14,4 +14,6 @@ details. */
void heap_init ();
void malloc_init ();
-#define inheap(s) (brk && ((char *) (s) >= (char *) brkbase) && ((char *) (s) <= (char *) brktop))
+#define inheap(s) \
+ (cygheap->heapptr && ((char *) (s) >= (char *) cygheap->heapbase) \
+ && ((char *) (s) <= (char *) cygheap->heaptop))