aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2004-02-27 04:41:33 +0000
committerMarcus Brinkmann <[email protected]>2004-02-27 04:41:33 +0000
commit7ba0190c1a63ab6d2aacc624f22c37f1186d28b1 (patch)
tree3759ab53b7dfe0b50c0e8ea14145f5c971c26482 /src
parent2004-02-27 Marcus Brinkmann <[email protected]> (diff)
downloadlibgpg-error-7ba0190c1a63ab6d2aacc624f22c37f1186d28b1.tar.gz
libgpg-error-7ba0190c1a63ab6d2aacc624f22c37f1186d28b1.zip
2004-02-27 Marcus Brinkmann <[email protected]>
* src/gpg-error.h.in: Add extern "C" closure for C-- compilers.
Diffstat (limited to 'src')
-rw-r--r--src/gpg-error.h.in11
1 files changed, 11 insertions, 0 deletions
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 */