aboutsummaryrefslogtreecommitdiff
path: root/src/common/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/md5.h')
-rw-r--r--src/common/md5.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/common/md5.h b/src/common/md5.h
index dbf4893c..e96521ee 100644
--- a/src/common/md5.h
+++ b/src/common/md5.h
@@ -5,6 +5,8 @@
#include <stdint.h>
+namespace google_breakpad {
+
typedef uint32_t u32;
typedef uint8_t u8;
@@ -14,18 +16,12 @@ struct MD5Context {
u8 in[64];
};
-#ifdef __cplusplus
-extern "C" {
-#endif // __cplusplus
-
void MD5Init(struct MD5Context *ctx);
void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len);
void MD5Final(unsigned char digest[16], struct MD5Context *ctx);
-#ifdef __cplusplus
-}
-#endif
+} // namespace google_breakpad
#endif // COMMON_MD5_H__