From d4f7b8474202a2e469a1ac60a976dfc6c06d1f18 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Sat, 16 Jun 2012 08:12:45 +0200 Subject: Uh, ffi_closure_alloc() and ffi_closure_free() are already defined in recent versions of , but of course not all of them. Rename. --- c/malloc_closure.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/malloc_closure.h') diff --git a/c/malloc_closure.h b/c/malloc_closure.h index e03a452..82527b0 100644 --- a/c/malloc_closure.h +++ b/c/malloc_closure.h @@ -102,7 +102,7 @@ static void more_core(void) /******************************************************************/ /* put the item back into the free list */ -static void ffi_closure_free(ffi_closure *p) +static void cffi_closure_free(ffi_closure *p) { union mmaped_block *item = (union mmaped_block *)p; item->next = free_list; @@ -110,7 +110,7 @@ static void ffi_closure_free(ffi_closure *p) } /* return one item from the free list, allocating more if needed */ -static ffi_closure *ffi_closure_alloc(void) +static ffi_closure *cffi_closure_alloc(void) { union mmaped_block *item; if (!free_list) -- cgit v1.2.1