Fix incompatibility with PGI 16.10

* src/tar.c (options): Fix incompatibility with the C standard,
which says that arguments to macro calls cannot contain # directives.
This commit is contained in:
Paul Eggert
2017-02-14 08:55:05 -08:00
parent 30fe67226a
commit 2be02a7c9a

View File

@@ -548,11 +548,11 @@ static struct argp_option options[] = {
N_("cancel the effect of --delay-directory-restore option"), GRID+1 },
{"sort", SORT_OPTION, N_("ORDER"), 0,
#if D_INO_IN_DIRENT
N_("directory sorting order: none (default), name or inode"
N_("directory sorting order: none (default), name or inode")
#else
N_("directory sorting order: none (default) or name"
N_("directory sorting order: none (default) or name")
#endif
), GRID+1 },
, GRID+1 },
#undef GRID
#define GRID 55
@@ -1758,7 +1758,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
case GROUP_MAP_OPTION:
group_map_read (arg);
break;
case MODE_OPTION:
mode_option = mode_compile (arg);
if (!mode_option)
@@ -1829,7 +1829,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
case OWNER_MAP_OPTION:
owner_map_read (arg);
break;
case QUOTE_CHARS_OPTION:
for (;*arg; arg++)
set_char_quoting (NULL, *arg, 1);
@@ -2123,7 +2123,7 @@ find_argp_option (struct argp *ap, int key)
{
struct argp_option const *p = NULL;
struct argp_child const *child;
p = find_argp_option_key (ap->options, key);
if (!p && ap->children)
{
@@ -2136,7 +2136,7 @@ find_argp_option (struct argp *ap, int key)
}
return p;
}
static const char *tar_authors[] = {
"John Gilmore",
"Jay Fenlason",