libshared: move md5 to BPrivate namespace
Otherwise it clashes with the implementation in OpenSSL which uses the same names but now has a different ABI. Change-Id: I5cb3ff97d7b28de978cdcbd8a06f25f65fb53784 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2854 Reviewed-by: Kyle Ambroff-Kao <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
6307201bac
commit
6b0e92ebd4
@@ -25,9 +25,7 @@
|
||||
#ifndef _MD5_H
|
||||
#define _MD5_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
namespace BPrivate {
|
||||
|
||||
/* Any 32-bit or wider unsigned integer data type will do */
|
||||
typedef unsigned int MD5_u32plus;
|
||||
@@ -43,8 +41,8 @@ extern void MD5_Init(MD5_CTX *ctx);
|
||||
extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
|
||||
extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
using namespace BPrivate;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user