From facaa0a8292091074ceaf3558ea1b938e23ac213 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 20 Dec 2014 12:42:55 +0000 Subject: Some OS3 compatibility for testing --- amiga/os3support.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'amiga/os3support.h') diff --git a/amiga/os3support.h b/amiga/os3support.h index c93e09a06..61b6d06ad 100644 --- a/amiga/os3support.h +++ b/amiga/os3support.h @@ -26,6 +26,8 @@ #ifndef __amigaos4__ #include +#include +#include /* Include prototypes for amigalib */ #include @@ -34,10 +36,18 @@ #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 +/* Easy wrapper for AllocVecTagList with no tags */ +#define AllocVecTagList(SZ,TAG) AllocVec(SZ,MEMF_ANY); + /* Integral type definitions */ typedef int8_t int8; typedef uint8_t uint8; @@ -45,6 +55,8 @@ typedef int16_t int16; typedef uint16_t uint16; typedef int32_t int32; typedef uint32_t uint32; +typedef int64_t int64; +typedef uint64_t uint64; /* TimeVal */ struct TimeVal { @@ -79,6 +91,8 @@ struct TimeVal { #define IDFMT_PALETTEMAPPED (1) /* Palette mapped icon (chunky, V44+) */ #define IDFMT_DIRECTMAPPED (2) /* Direct mapped icon (truecolor 0xAARRGGBB, V51+) */ +/* Functions */ +int64 GetFileSize(BPTR fh); #endif #endif -- cgit v1.2.3