- Added C++ wrapper code

This commit is contained in:
Paul Bakker 2011-05-20 12:30:59 +00:00
parent 2f5947e1f6
commit bcd5db493f

View file

@ -71,6 +71,10 @@
* Module dependent error code (5 bits 0x.08.-0x.F8.) * 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, * \brief Translate a PolarSSL error code into a string representation,
* Result is truncated if necessary and always includes a terminating * Result is truncated if necessary and always includes a terminating
@ -82,4 +86,8 @@
*/ */
void error_strerror( int errnum, char *buffer, size_t buflen ); void error_strerror( int errnum, char *buffer, size_t buflen );
#ifdef __cplusplus
}
#endif
#endif /* error.h */ #endif /* error.h */