Commit 4acbbe8a authored by sof's avatar sof
Browse files

[project @ 2002-02-14 17:21:50 by sof]

widen the scope of is_heap_alloced() proto; for all mingw builds
parent 18b9187c
/* -----------------------------------------------------------------------------
* $Id: MBlock.h,v 1.12 2002/01/21 17:18:43 sof Exp $
* $Id: MBlock.h,v 1.13 2002/02/14 17:21:50 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
......@@ -10,7 +10,7 @@
#define __MBLOCK_H__
extern lnat mblocks_allocated;
#ifdef ENABLE_WIN32_DLL_SUPPORT
#if defined(mingw32_TARGET_OS)
extern int is_heap_alloced(const void* p);
#endif
......
/* -----------------------------------------------------------------------------
* $Id: Storage.h,v 1.40 2002/02/04 20:21:16 sof Exp $
* $Id: Storage.h,v 1.41 2002/02/14 17:21:50 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
......@@ -435,7 +435,7 @@ extern void* DATA_SECTION_END_MARKER_DECL;
#ifdef TEXT_BEFORE_HEAP
# define HEAP_ALLOCED(x) ((StgPtr)(x) >= (StgPtr)(HEAP_BASE))
#else
extern int is_heap_alloced(const void* x);
/* mingw, really */
# define HEAP_ALLOCED(x) (is_heap_alloced(x))
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment