X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=blobdiff_plain;f=sha1.h;h=80f6c2dfa426da73507ce9594110462c1d6b05a0;hp=13328d3a3bc4008cf5a7818e593b325c44e5c0df;hb=7c15bef6c732896d9ffb883fb1480fcd60c94a50;hpb=2f713da924fa20cf89c25f2d122b54b959b09f87 diff --git a/sha1.h b/sha1.h index 13328d3..80f6c2d 100644 --- a/sha1.h +++ b/sha1.h @@ -10,7 +10,6 @@ #define _SYS_SHA1_H_ #include -#include #include #define SHA1_DIGEST_LENGTH 20 @@ -22,11 +21,15 @@ typedef struct { u_char buffer[64]; } SHA1_CTX; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif void SHA1Transform(uint32_t[5], const u_char[64]); void SHA1Init(SHA1_CTX *); void SHA1Update(SHA1_CTX *, const u_char *, u_int); void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *); -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* _SYS_SHA1_H_ */