From 1e4d7b8835de62120a41a7ad085267aa3149ce8e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 13 Sep 2010 13:57:32 +0000 Subject: [PATCH] 2010-09-13 Sebastian Huber * libmd/md5.h: C++ compatibility. --- cpukit/ChangeLog | 4 ++++ cpukit/libmd/md5.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 4d9afe3f03..bc11c61fbe 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2010-09-13 Sebastian Huber + + * libmd/md5.h: C++ compatibility. + 2010-09-08 Ralf Corsépius * configure.ac: Add checks for pthread_attr_getguardsize, diff --git a/cpukit/libmd/md5.h b/cpukit/libmd/md5.h index 1756a31228..543c539bc1 100644 --- a/cpukit/libmd/md5.h +++ b/cpukit/libmd/md5.h @@ -41,6 +41,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* typedef a 32-bit type */ typedef uint32_t UINT4; @@ -56,5 +60,9 @@ void MD5Init (MD5_CTX *); void MD5Update (MD5_CTX *, const unsigned char *, unsigned int); void MD5Final (unsigned char [16], MD5_CTX *); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #define __MD5_INCLUDE__ #endif /* __MD5_INCLUDE__ */