summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-03-02 23:53:25 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-03-02 23:53:25 +0000
commit37c0dcc1c5de250a4262030a7859eef4e11c6ff8 (patch)
tree7651c693f31a9f128e5ad4e0a0ec5ce18afc3ced /amiga
parentda8d9885d5bbb1fc0976851ec26d74cb06b0a45c (diff)
downloadnetsurf-37c0dcc1c5de250a4262030a7859eef4e11c6ff8.tar.gz
netsurf-37c0dcc1c5de250a4262030a7859eef4e11c6ff8.tar.bz2
Tweak #ifdefs so that OS3 build mostly works on OS4, to aid debugging.
Diffstat (limited to 'amiga')
-rw-r--r--amiga/gui.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index ef3d9f4f8..774382ddf 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -1365,13 +1365,14 @@ static void ami_update_quals(struct gui_window_2 *gwin)
/* exported interface documented in amiga/gui.h */
nserror ami_gui_get_space_box(Object *obj, struct IBox **bbox)
{
- if(LIB_IS_AT_LEAST((struct Library *)SpaceBase, 53, 6)) {
#ifdef __amigaos4__
+ if(LIB_IS_AT_LEAST((struct Library *)SpaceBase, 53, 6)) {
*bbox = AllocVecTagList(sizeof(struct IBox), NULL);
if(*bbox == NULL) return NSERROR_NOMEM;
GetAttr(SPACE_RenderBox, obj, (ULONG *)*bbox);
+ } else
#endif
- } else {
+ {
GetAttr(SPACE_AreaBox, obj, (ULONG *)bbox);
}
@@ -1381,9 +1382,11 @@ nserror ami_gui_get_space_box(Object *obj, struct IBox **bbox)
/* exported interface documented in amiga/gui.h */
void ami_gui_free_space_box(struct IBox *bbox)
{
+#ifdef __amigaos4__
if(LIB_IS_AT_LEAST((struct Library *)SpaceBase, 53, 6)) {
FreeVec(bbox);
}
+#endif
}
static bool ami_spacebox_to_ns_coords(struct gui_window_2 *gwin, int *x, int *y,