From 201bc569a4f40b1b2e53660cceb183570534b557 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 18 Jan 2015 23:13:32 +0000 Subject: More OS3 compilation fixes --- amiga/stringview/urlhistory.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'amiga/stringview/urlhistory.c') diff --git a/amiga/stringview/urlhistory.c b/amiga/stringview/urlhistory.c index 6d134a4a5..d55a4b4b6 100644 --- a/amiga/stringview/urlhistory.c +++ b/amiga/stringview/urlhistory.c @@ -33,6 +33,12 @@ static struct List PageList; +#ifdef __amigaos4__ +#define ALLOCVEC_SHARED(N) AllocVecTags((N), AVT_Type, MEMF_SHARED, TAG_DONE); +#else +#define ALLOCVEC_SHARED(N) AllocVec((N), MEMF_SHARED); +#endif + void URLHistory_Init( void ) { // Initialise page list @@ -79,17 +85,11 @@ static bool URLHistoryFound(nsurl *url, const struct url_data *data) /* skip this URL if it is already in the list */ if(URLHistory_FindPage(nsurl_access(url))) return true; - node = AllocVecTags(sizeof(struct Node), - AVT_Type, MEMF_SHARED, - //AVT_ClearWithValue, 0, - TAG_DONE); + node = ALLOCVEC_SHARED(sizeof(struct Node)); if ( node ) { - STRPTR urladd = (STRPTR) AllocVecTags( strlen ( nsurl_access(url) ) + 1, - AVT_Type, MEMF_SHARED, - //AVT_ClearWithValue, 0, - TAG_DONE); + STRPTR urladd = (STRPTR) ALLOCVEC_SHARED( strlen ( nsurl_access(url) ) + 1); if ( urladd ) { -- cgit v1.2.3