summaryrefslogtreecommitdiff
path: root/amiga/os3support.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-12-20 12:42:55 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-12-20 12:42:55 +0000
commitfacaa0a8292091074ceaf3558ea1b938e23ac213 (patch)
treeaa28c16a4c0093acd98ca1af402a4cfb0b3f9068 /amiga/os3support.h
parent6684b938e24a4a11e45310ca2140b46c7c23a961 (diff)
downloadnetsurf-facaa0a8292091074ceaf3558ea1b938e23ac213.tar.gz
netsurf-facaa0a8292091074ceaf3558ea1b938e23ac213.tar.bz2
Some OS3 compatibility for testing
Diffstat (limited to 'amiga/os3support.h')
-rw-r--r--amiga/os3support.h14
1 files changed, 14 insertions, 0 deletions
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 <stdint.h>
+#include <proto/exec.h>
+#include <proto/dos.h>
/* Include prototypes for amigalib */
#include <clib/alib_protos.h>
@@ -34,10 +36,18 @@
#include <exec/memory.h>
#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