endianness define fix

This commit is contained in:
Arvid Norberg 2009-10-18 20:35:18 +00:00
parent 70b0edb9f4
commit 99dbfdbb79
1 changed files with 3 additions and 1 deletions

View File

@ -194,9 +194,11 @@ void SHA1_Init(SHA_CTX* context)
void SHA1_Update(SHA_CTX* context, u8 const* data, u32 len)
{
// GCC standard defines for endianness
// test with: cpp -dM /dev/null
#if defined __BIG_ENDIAN__
internal_update<big_endian_blk0>(context, data, len);
#elif defined LITTLE_ENDIAN
#elif defined __LITTLE_ENDIAN__
internal_update<little_endian_blk0>(context, data, len);
#else
// select different functions depending on endianess