From 7ba0190c1a63ab6d2aacc624f22c37f1186d28b1 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 27 Feb 2004 04:41:33 +0000 Subject: 2004-02-27 Marcus Brinkmann * src/gpg-error.h.in: Add extern "C" closure for C-- compilers. --- ChangeLog | 2 ++ src/gpg-error.h.in | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 364a19b..a02f807 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-02-27 Marcus Brinkmann + * src/gpg-error.h.in: Add extern "C" closure for C-- compilers. + * src/Makefile.am (noinst_PROGRAMS): New variable. (gpg_error_LDADD): New variable. (gpg_error_SOURCES): New variable. diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in index b97874d..4bb20d9 100644 --- a/src/gpg-error.h.in +++ b/src/gpg-error.h.in @@ -33,6 +33,13 @@ #endif #endif +#ifdef __cplusplus +extern "C" { +#if 0 /* just to make Emacs auto-indent happy */ +} +#endif +#endif /* __cplusplus */ + /* The GnuPG project consists of many components. Error codes are exchanged between all components. The common error codes and their user-presentable descriptions are kept into a shared library to @@ -197,4 +204,8 @@ gpg_error_from_errno (int err) return gpg_error (gpg_err_code_from_errno (err)); } +#ifdef __cplusplus +} +#endif + #endif /* GPG_ERROR_H */ -- cgit v1.2.3