From 455a601aad7bcf8caeacab32bf4fb51ba6988ea6 Mon Sep 17 00:00:00 2001 From: landley Date: Tue, 21 Feb 2006 06:44:43 +0000 Subject: 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).) git-svn-id: svn://busybox.net/trunk/busybox@14160 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- include/platform.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index 68c7abbc6..b19621af1 100644 --- a/include/platform.h +++ b/include/platform.h @@ -78,4 +78,19 @@ # endif #endif +/* ---- Endian Detection ------------------------------------ */ +#ifndef __APPLE__ + #include + #include +#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 */ -- cgit v1.2.3-55-g6feb