summaryrefslogtreecommitdiff
path: root/amiga/os3support.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-09 00:10:02 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-09 00:10:02 +0000
commit5a1aaa4e61f7a16da480e9bea996927d393eafc5 (patch)
tree9cd4ad1d22d529d6998f4f89b863c610d6d832d5 /amiga/os3support.h
parentfa3587f122e6effb5bb663aa992501bd8e307417 (diff)
downloadnetsurf-5a1aaa4e61f7a16da480e9bea996927d393eafc5.tar.gz
netsurf-5a1aaa4e61f7a16da480e9bea996927d393eafc5.tar.bz2
Some easy OS3 compatibility
Credit for most of this: Bernd Gollesch
Diffstat (limited to 'amiga/os3support.h')
-rw-r--r--amiga/os3support.h20
1 files changed, 15 insertions, 5 deletions
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 <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
+/* 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