Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweaked

md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)
This commit is contained in:
Rob Landley
2006-02-21 06:44:43 +00:00
parent a7e3d05208
commit 5cf7c2df66
8 changed files with 358 additions and 427 deletions

View File

@ -78,4 +78,19 @@
# endif
#endif
/* ---- Endian Detection ------------------------------------ */
#ifndef __APPLE__
#include <byteswap.h>
#include <endian.h>
#endif
#ifdef __BIG_ENDIAN__
#define BB_BIG_ENDIAN 1
#elif __BYTE_ORDER == __BIG_ENDIAN
#define BB_BIG_ENDIAN 1
#else
#define BB_BIG_ENDIAN 0
#endif
#endif /* platform.h */