From 448bef7b851ef2b0ac7cb5f9612eb97f9850e3c8 Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Wed, 4 Sep 2013 18:12:05 +0000 Subject: [PATCH] diskimage.device: If we are using GCC, simplify the PLUGIN_NODE() macro Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47965 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/devs/diskimage/include/devices/diskimage.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workbench/devs/diskimage/include/devices/diskimage.h b/workbench/devs/diskimage/include/devices/diskimage.h index fd66b28bef..0a5aef9035 100644 --- a/workbench/devs/diskimage/include/devices/diskimage.h +++ b/workbench/devs/diskimage/include/devices/diskimage.h @@ -141,11 +141,15 @@ struct DiskImagePluginTable plugin_table = { \ }; #endif +#ifdef __GNUC__ +#define PLUGIN_NODE(pri,name) { .ln_Name = name, .ln_Pri = pri } +#else #if defined(__AROS__) && defined(AROS_FLAVOUR) && !(AROS_FLAVOUR & AROS_FLAVOUR_BINCOMPAT) #define PLUGIN_NODE(pri,name) { NULL, NULL, name, 0, pri } #else #define PLUGIN_NODE(pri,name) { NULL, NULL, 0, pri, name } #endif +#endif #ifdef USED_PLUGIN_API_VERSION #if (USED_PLUGIN_API_VERSION < MIN_PLUGIN_API_VERSION) || (USED_PLUGIN_API_VERSION > MAX_PLUGIN_API_VERSION) -- 2.11.4.GIT