mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 08:19:55 +03:00
Ensure pool init returns non-NULL so it isn't treated as an error.
This commit is contained in:
parent
2b6a416970
commit
c0a15de1e4
@ -51,7 +51,7 @@ void *ami_memory_clear_alloc(size_t size, UBYTE value);
|
||||
#define ami_memory_itempool_alloc(p,s) ItemPoolAlloc(p)
|
||||
#define ami_memory_itempool_free(p,i,s) ItemPoolFree(p,i)
|
||||
#else
|
||||
#define ami_memory_itempool_create(s) (NULL)
|
||||
#define ami_memory_itempool_create(s) ((APTR)1)
|
||||
#define ami_memory_itempool_delete(p) ((void)0)
|
||||
#define ami_memory_itempool_alloc(p,s) malloc(s)
|
||||
#define ami_memory_itempool_free(p,i,s) free(p)
|
||||
|
Loading…
Reference in New Issue
Block a user