X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=blobdiff_plain;f=sha1.h;h=80f6c2dfa426da73507ce9594110462c1d6b05a0;hp=9a8f7e326043454f285ba0ef5869e1578e5b8a0f;hb=bd53eaafbc2a89a57b8adda38f53098a431fa8f4;hpb=fb5c011b4912fb14cfa87a06a5542c06aecc9278 diff --git a/sha1.h b/sha1.h index 9a8f7e3..80f6c2d 100644 --- a/sha1.h +++ b/sha1.h @@ -12,18 +12,6 @@ #include #include -#ifdef USE_MINGW -typedef unsigned char u_char; -typedef unsigned int uint32_t; -typedef unsigned int u_int32_t; -typedef unsigned int u_int; - -#define __BEGIN_DECLS -#define __END_DECLS -#else -#include -#endif - #define SHA1_DIGEST_LENGTH 20 #define SHA1_DIGEST_STRING_LENGTH 41 @@ -33,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_ */