From: Marc Nieper-Wißkirchen Date: Sat, 8 Jan 2022 10:41:21 +0000 (+0100) Subject: version-etc: Adapt header file for use in C++ applications. X-Git-Tag: v1.0~2415 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5aba144db292c55c7eafd59eccd1bdeea0b91b1;p=thirdparty%2Fgnulib.git version-etc: Adapt header file for use in C++ applications. * lib/version-etc.h: Add extern "C" block. --- diff --git a/ChangeLog b/ChangeLog index 60ca624f1d..ad525f531c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-01-08 Marc Nieper-Wißkirchen + + version-etc: Adapt header file for use in C++ applications. + * lib/version-etc.h: Add extern "C" block. + 2022-01-07 Bruno Haible sigsegv: Improve support for Linux/LoongArch64. diff --git a/lib/version-etc.h b/lib/version-etc.h index 93fbdca428..c6b4eef4b0 100644 --- a/lib/version-etc.h +++ b/lib/version-etc.h @@ -22,6 +22,11 @@ # include # include +# ifdef __cplusplus +extern "C" +{ +# endif + extern const char version_etc_copyright[]; /* The three functions below display the --version information in the @@ -66,4 +71,8 @@ extern void version_etc (FILE *stream, /* Display the usual "Report bugs to" stanza. */ extern void emit_bug_reporting_address (void); +# ifdef __cplusplus +} +# endif + #endif /* VERSION_ETC_H */