From 8b3e22b18791f2148da46e60040fc4d9270936b5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 14 Feb 2017 08:40:23 -0800 Subject: [PATCH] argp: port to PGI 16.10 * lib/argp-pin.c (dummy): Declare as needed to make file nonempty. --- ChangeLog | 5 +++++ lib/argp-pin.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9e4337afd4..bb5e75cbc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-02-14 Paul Eggert + + argp: port to PGI 16.10 + * lib/argp-pin.c (dummy): Declare as needed to make file nonempty. + 2017-02-13 Darshit Shah unicase: Update function protoype to match definition. diff --git a/lib/argp-pin.c b/lib/argp-pin.c index 261191fd0a..64d831d5df 100644 --- a/lib/argp-pin.c +++ b/lib/argp-pin.c @@ -24,3 +24,10 @@ char *program_invocation_short_name = 0; #ifndef HAVE_PROGRAM_INVOCATION_NAME char *program_invocation_name = 0; #endif + +#if (defined HAVE_PROGRAM_INVOCATION_SHORT_NAME \ + && defined HAVE_PROGRAM_INVOCATION_NAME) +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; +#endif -- 2.39.5