diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-30 00:53:11 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-30 00:53:11 +0000 |
commit | 625b59f61a33b356bcdec3a5f9ceb2aa2d566b9f (patch) | |
tree | a195db6a7a7864efe425c37660ab5fe0975c057d /amiga/os3support.h | |
parent | 8a2247b3b38aff43ffe076acbb0674abbee2489b (diff) | |
download | netsurf-625b59f61a33b356bcdec3a5f9ceb2aa2d566b9f.tar.gz netsurf-625b59f61a33b356bcdec3a5f9ceb2aa2d566b9f.tar.bz2 |
First pass of AmigaOS 3 compatibility
svn path=/trunk/netsurf/; revision=11155
Diffstat (limited to 'amiga/os3support.h')
-rw-r--r-- | amiga/os3support.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/amiga/os3support.h b/amiga/os3support.h new file mode 100644 index 000000000..93dca85b7 --- /dev/null +++ b/amiga/os3support.h @@ -0,0 +1,57 @@ +/* + * Copyright 2010 John-Mark Bell <jmb@netsurf-browser.org> + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** \file + * Minimal compatibility header for AmigaOS 3 + */ + +#ifndef AMIGA_OS3SUPPORT_H_ +#define AMIGA_OS3SUPPORT_H_ + +#ifndef __amigaos4__ + +#include <stdint.h> + +/* Include prototypes for amigalib */ +#include <clib/alib_protos.h> + +#ifndef EXEC_MEMORY_H +#include <exec/memory.h> +#endif + +/* Define extra memory type flags */ +#define MEMF_PRIVATE MEMF_ANY +#define MEMF_SHARED MEMF_ANY + +/* Integral type definitions */ +typedef int8_t int8; +typedef uint8_t uint8; +typedef int16_t int16; +typedef uint16_t uint16; +typedef int32_t int32; +typedef uint32_t uint32; + +/* TimeVal */ +struct TimeVal { + uint32 Seconds; + uint32 Microseconds; +}; + +#endif + +#endif |