diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:40:32 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-19 21:40:32 +0000 |
commit | 05fa29ba8bc2dbfaa9af7ed1263554c7cdc9214d (patch) | |
tree | 4dfcf8af6868400d5464e61cd625609f1cf5001a /frontends/amiga/memory.h | |
parent | 4f0c9b6c610d1eb9a5bcccf6dbf3f53410df9432 (diff) | |
download | netsurf-05fa29ba8bc2dbfaa9af7ed1263554c7cdc9214d.tar.gz netsurf-05fa29ba8bc2dbfaa9af7ed1263554c7cdc9214d.tar.bz2 |
more allocvec/malloc changes
Diffstat (limited to 'frontends/amiga/memory.h')
-rw-r--r-- | frontends/amiga/memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/amiga/memory.h b/frontends/amiga/memory.h index 5e6286426..dd36a214b 100644 --- a/frontends/amiga/memory.h +++ b/frontends/amiga/memory.h @@ -22,8 +22,13 @@ #include <exec/types.h> /* Alloc/free chip memory */ +#ifdef __amigaos4__ +#define ami_memory_chip_alloc(s) malloc(s) +#define ami_memory_chip_free(p) free(p) +#else #define ami_memory_chip_alloc(s) AllocVec(s, MEMF_CHIP) #define ami_memory_chip_free(p) FreeVec(p) +#endif /* Alloc/free a block cleared to non-zero */ void *ami_memory_clear_alloc(size_t size, UBYTE value); |