]> Savannah Git Hosting - gnulib.git/commitdiff
version-etc: Adapt header file for use in C++ applications.
authorMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Sat, 8 Jan 2022 10:41:21 +0000 (11:41 +0100)
committerMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Sat, 8 Jan 2022 10:41:21 +0000 (11:41 +0100)
* lib/version-etc.h: Add extern "C" block.

ChangeLog
lib/version-etc.h

index 60ca624f1d8fefd5c896b0ea254a00b0db6615c1..ad525f531cc8acd86d67ac01f826779104f0e3fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-01-08  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
+
+       version-etc: Adapt header file for use in C++ applications.
+       * lib/version-etc.h: Add extern "C" block.
+
 2022-01-07  Bruno Haible  <bruno@clisp.org>
 
        sigsegv: Improve support for Linux/LoongArch64.
index 93fbdca42861a7cd9ecbdf138bccc9f8b24ade9c..c6b4eef4b0c47fb984bcb595f5d946431fb6c3ba 100644 (file)
 # include <stdarg.h>
 # include <stdio.h>
 
+# 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 */