Added extern "C" where needed.
This commit is contained in:
parent
3b458d2583
commit
44d4752e83
4 changed files with 18 additions and 247 deletions
|
@ -1,6 +1,10 @@
|
|||
#ifndef __FIXER_H__
|
||||
#define __FIXER_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -112,4 +116,8 @@ int GetFileAttributesA(const char *file);
|
|||
int SetFilePointer(HANDLE file, int x, int y, int z);
|
||||
int SetEndOfFile(HANDLE file);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -46,7 +46,7 @@ byteSwap(UWORD32 *buf, unsigned words)
|
|||
#endif
|
||||
|
||||
/* md5_buffer frontend added for AvP */
|
||||
void md5_buffer(const char *buffer, unsigned len, char *digest)
|
||||
void md5_buffer(char const *buffer, unsigned int len, char *digest)
|
||||
{
|
||||
struct MD5Context md5c;
|
||||
|
||||
|
|
10
src/md5.h
10
src/md5.h
|
@ -25,6 +25,10 @@
|
|||
#ifndef MD5_H
|
||||
#define MD5_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef unsigned int UWORD32;
|
||||
|
||||
#define md5byte unsigned char
|
||||
|
@ -41,6 +45,10 @@ void MD5Final(unsigned char digest[16], struct MD5Context *context);
|
|||
void MD5Transform(UWORD32 buf[4], UWORD32 const in[16]);
|
||||
|
||||
/* md5_buffer frontend added for AvP */
|
||||
void md5_buffer(const char *buffer, unsigned len, char *digest);
|
||||
void md5_buffer(char const *buffer, unsigned int len, char *digest);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* !MD5_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue