mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: convert git-access.c to C++
Had to make sha.h compatible with C++. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b0438ad1dd
commit
924b23ed56
5 changed files with 70 additions and 80 deletions
|
|
@ -8,6 +8,10 @@
|
|||
#ifndef SHA1_H
|
||||
#define SHA1_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned long long size;
|
||||
|
|
@ -35,4 +39,8 @@ static inline void SHA1(const void *dataIn, unsigned long len, unsigned char has
|
|||
SHA1_Final(hashout, &ctx);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // SHA1_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue