From: short <> Date: Fri, 21 May 2004 21:41:55 +0000 (+0000) Subject: Fixed C macro compatibility with older GCC. X-Git-Tag: udpgate-1_0~38 X-Git-Url: http://git.jankratochvil.net/?p=udpgate.git;a=commitdiff_plain;h=e439694185355c8754e66cdd3162f8256a9a2464;ds=sidebyside Fixed C macro compatibility with older GCC. --- 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,