From c5610aa66aad3dd0311e8f32aadf37af66f19b99 Mon Sep 17 00:00:00 2001 From: sof Date: Wed, 3 Mar 1999 19:27:23 +0000 Subject: [PATCH] [project @ 1999-03-03 19:27:23 by sof] Define HEAP_ALLOCED macro in non Win32 DLL land too --- ghc/includes/ClosureMacros.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghc/includes/ClosureMacros.h b/ghc/includes/ClosureMacros.h index 60fe077..29fcc85 100644 --- a/ghc/includes/ClosureMacros.h +++ b/ghc/includes/ClosureMacros.h @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * $Id: ClosureMacros.h,v 1.6 1999/03/03 18:16:15 sof Exp $ + * $Id: ClosureMacros.h,v 1.7 1999/03/03 19:27:23 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -107,7 +107,9 @@ extern StgFun DATA_SECTION_END_MARKER_DECL; #ifdef HAVE_WIN32_DLL_SUPPORT extern int is_heap_alloced(const void* x); -#define HEAP_ALLOCED(x) (is_heap_alloced(x)) +# define HEAP_ALLOCED(x) (is_heap_alloced(x)) +#else +# define HEAP_ALLOCED(x) IS_USER_PTR(x) #endif /* When working with Win32 DLLs, static closures are identified by -- 1.7.10.4