From e439694185355c8754e66cdd3162f8256a9a2464 Mon Sep 17 00:00:00 2001 From: short <> Date: Fri, 21 May 2004 21:41:55 +0000 Subject: [PATCH] Fixed C macro compatibility with older GCC. --- src/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index a302c63..10fa0ca 100644 --- a/src/main.c +++ b/src/main.c @@ -68,13 +68,14 @@ static const struct poptOption popt_table[]={ argDescrip: (argDescripP), \ } - UDPGATE_POPT(0 ,"text" ,POPT_ARG_NONE ,&optarg_text ,0, #ifdef HAVE_GNOME - N_("Disable Gnome UI; --text must be first argument") +#define OPT_TEXT_IF_GNOME N_("Disable Gnome UI; --text must be first argument") #else /* HAVE_GNOME */ - N_("(no Gnome UI compiled - stub only); --text must be first argument") +#define OPT_TEXT_IF_GNOME N_("(no Gnome UI compiled - stub only); --text must be first argument") #endif /* HAVE_GNOME */ - ,NULL), + UDPGATE_POPT(0 ,"text" ,POPT_ARG_NONE ,&optarg_text ,0, + OPT_TEXT_IF_GNOME,NULL), +#undef OPT_TEXT_IF_GNOME UDPGATE_POPT('v',"verbose",POPT_ARG_NONE ,&optarg_verbose,0, N_("Display additional debug information"),NULL), UDPGATE_POPT('p',"port" ,POPT_ARG_INT |POPT_ARGFLAG_SHOW_DEFAULT,&optarg_port ,0, -- 1.8.3.1