From bcd5db493f9f520b33e49566fd67c5ea50e8e51e Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Fri, 20 May 2011 12:30:59 +0000
Subject: [PATCH] - Added C++ wrapper code
---
include/polarssl/error.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/polarssl/error.h b/include/polarssl/error.h
index 8a3f304468..af2f33183c 100644
--- a/include/polarssl/error.h
+++ b/include/polarssl/error.h
@@ -71,6 +71,10 @@
* Module dependent error code (5 bits 0x.08.-0x.F8.)
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* \brief Translate a PolarSSL error code into a string representation,
* Result is truncated if necessary and always includes a terminating
@@ -82,4 +86,8 @@
*/
void error_strerror( int errnum, char *buffer, size_t buflen );
+#ifdef __cplusplus
+}
+#endif
+
#endif /* error.h */