From 2f9eece3403d9bd167f6074d30f6bb8cc1940f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Wed, 20 Apr 2005 13:33:18 +0000 Subject: [PATCH] make xml in option usage conditional git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2024 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tests/rigmem.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/rigmem.c b/tests/rigmem.c index 877a72b70..b86714d66 100644 --- a/tests/rigmem.c +++ b/tests/rigmem.c @@ -4,7 +4,7 @@ * This program exercises the backup and restore of a radio * using Hamlib. * - * $Id: rigmem.c,v 1.3 2005-01-25 00:21:56 fillods Exp $ + * $Id: rigmem.c,v 1.4 2005-04-20 13:33:18 fillods Exp $ * * * This program is free software; you can redistribute it and/or @@ -81,7 +81,9 @@ static struct option long_options[] = {"civaddr", 1, 0, 'c'}, {"set-conf", 1, 0, 'C'}, {"all", 0, 0, 'a'}, +#ifdef HAVE_XML2 {"xml", 0, 0, 'x'}, +#endif {"verbose", 0, 0, 'v'}, {"help", 0, 0, 'h'}, {"version", 0, 0, 'V'}, @@ -161,9 +163,11 @@ int main (int argc, char *argv[]) case 'a': all++; break; +#ifdef HAVE_XML2 case 'x': xml++; break; +#endif case 'v': verbose++; break; @@ -286,7 +290,9 @@ void usage() " -c, --civaddr=ID set CI-V address, decimal (for Icom rigs only)\n" " -C, --set-conf=PARM=VAL set config parameters\n" " -a, --all bypass mem_caps, apply to all fields of channel_t\n" +#ifdef HAVE_XML2 " -x, --xml use XML format instead of CSV\n" +#endif " -v, --verbose set verbose mode, cumulative\n" " -h, --help display this help and exit\n" " -V, --version output version information and exit\n\n"