summaryrefslogtreecommitdiff
path: root/amiga/menu.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-13 11:52:11 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-13 11:52:11 +0100
commit56723e5898217cc10f808bad18bc39a4e5bcae79 (patch)
tree8390481be9438bdd97f69fa462fb28fa5061481d /amiga/menu.c
parent8b9963e7efdad6ca35cdede07a6ad1fd25c19e74 (diff)
downloadnetsurf-56723e5898217cc10f808bad18bc39a4e5bcae79.tar.gz
netsurf-56723e5898217cc10f808bad18bc39a4e5bcae79.tar.bz2
Use LIB_IS_AT_LEAST macro
Diffstat (limited to 'amiga/menu.c')
-rw-r--r--amiga/menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/amiga/menu.c b/amiga/menu.c
index 3e9cae5c4..0b93ade65 100644
--- a/amiga/menu.c
+++ b/amiga/menu.c
@@ -393,8 +393,7 @@ static struct gui_window_2 *ami_menu_layout(struct gui_window_2 *gwin)
} while((gwin->menutype[j] != NM_TITLE) && (gwin->menutype[j] != 0));
}
- if((GadToolsBase->lib_Version > 53) ||
- ((GadToolsBase->lib_Version == 53) && (GadToolsBase->lib_Revision >= 6))) {
+ if(LIB_IS_AT_LEAST((struct Library *)GadToolsBase, 53, 6)) {
/* GadTools 53.6+ only. For now we will only create the menu
using label.image if there's a bitmap associated with the item. */
if((gwin->menuicon[i] != NULL) && (gwin->menulab[i] != NM_BARLABEL)) {