Fixed C macro compatibility with older GCC.
authorshort <>
Fri, 21 May 2004 21:41:55 +0000 (21:41 +0000)
committershort <>
Fri, 21 May 2004 21:41:55 +0000 (21:41 +0000)
src/main.c

index a302c63..10fa0ca 100644 (file)
@@ -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,