From 5a1aaa4e61f7a16da480e9bea996927d393eafc5 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 9 Jan 2015 00:10:02 +0000 Subject: Some easy OS3 compatibility Credit for most of this: Bernd Gollesch --- amiga/os3support.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'amiga/os3support.h') diff --git a/amiga/os3support.h b/amiga/os3support.h index 61b6d06ad..1a4ae4c6d 100644 --- a/amiga/os3support.h +++ b/amiga/os3support.h @@ -36,18 +36,21 @@ #include #endif -/* Library bases */ -struct Library *SysBase; -struct Library *DOSBase; -struct Library *IFFParseBase; - /* Define extra memory type flags */ #define MEMF_PRIVATE MEMF_ANY #define MEMF_SHARED MEMF_ANY +/* Ignore tags that aren't supported */ +#define PDTA_PromoteMask TAG_IGNORE + /* Easy wrapper for AllocVecTagList with no tags */ #define AllocVecTagList(SZ,TAG) AllocVec(SZ,MEMF_ANY); +#define Notify(...) (void)0; + +#define FOpen(A,B,C) Open(A,B); +#define FClose(A) Close(A); + /* Integral type definitions */ typedef int8_t int8; typedef uint8_t uint8; @@ -92,7 +95,14 @@ struct TimeVal { #define IDFMT_DIRECTMAPPED (2) /* Direct mapped icon (truecolor 0xAARRGGBB, V51+) */ /* Functions */ +/* DOS */ int64 GetFileSize(BPTR fh); + +/* Exec */ +struct Node *GetHead(struct List *list); + +/* Utility */ +char *ASPrintf(const char *fmt, ...); #endif #endif -- cgit v1.2.3