Applies to 1.0.1 and HEAD. Credit goes to "cppcheck".

Signed-off-by: Thomas Jarosch <[email protected]>
---
 engines/e_capi_err.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/engines/e_capi_err.h b/engines/e_capi_err.h
index 4c749ec..efa7001 100644
--- a/engines/e_capi_err.h
+++ b/engines/e_capi_err.h
@@ -55,6 +55,10 @@
 #ifndef HEADER_CAPI_ERR_H
 #define HEADER_CAPI_ERR_H
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /* BEGIN ERROR CODES */
 /* The following lines are auto generated by the script mkerr.pl. Any changes
  * made after this point may be overwritten when the script is next run.
-- 
1.7.4.4

>From 0aeeb87f16b25fd5b232634702eb7e16dacc40a2 Mon Sep 17 00:00:00 2001
From: Thomas Jarosch <[email protected]>
Date: Sun, 28 Aug 2011 01:45:25 +0200
Subject: [PATCH 1/4] Fix bracket imbalance if __cplusplus is defined

Applies to 1.0.1 and HEAD. Credit goes to "cppcheck".

Signed-off-by: Thomas Jarosch <[email protected]>
---
 engines/e_capi_err.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/engines/e_capi_err.h b/engines/e_capi_err.h
index 4c749ec..efa7001 100644
--- a/engines/e_capi_err.h
+++ b/engines/e_capi_err.h
@@ -55,6 +55,10 @@
 #ifndef HEADER_CAPI_ERR_H
 #define HEADER_CAPI_ERR_H
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /* BEGIN ERROR CODES */
 /* The following lines are auto generated by the script mkerr.pl. Any changes
  * made after this point may be overwritten when the script is next run.
-- 
1.7.4.4

Reply via email to