diff options
author | Rob Landley <rob@landley.net> | 2006-02-21 06:44:43 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-02-21 06:44:43 +0000 |
commit | 5cf7c2df668d25c41a05670edd08558226f0bfdf (patch) | |
tree | 3c3a7b2aa31dd4105f15f435a5894c91c941686e /include/platform.h | |
parent | a7e3d0520856db27744b4a33e786123d44bf5b2a (diff) | |
download | busybox-w32-5cf7c2df668d25c41a05670edd08558226f0bfdf.tar.gz busybox-w32-5cf7c2df668d25c41a05670edd08558226f0bfdf.tar.bz2 busybox-w32-5cf7c2df668d25c41a05670edd08558226f0bfdf.zip |
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).)
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
78 | # endif | 78 | # endif |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | /* ---- Endian Detection ------------------------------------ */ | ||
82 | #ifndef __APPLE__ | ||
83 | #include <byteswap.h> | ||
84 | #include <endian.h> | ||
85 | #endif | ||
86 | |||
87 | #ifdef __BIG_ENDIAN__ | ||
88 | #define BB_BIG_ENDIAN 1 | ||
89 | #elif __BYTE_ORDER == __BIG_ENDIAN | ||
90 | #define BB_BIG_ENDIAN 1 | ||
91 | #else | ||
92 | #define BB_BIG_ENDIAN 0 | ||
93 | #endif | ||
94 | |||
95 | |||
81 | #endif /* platform.h */ | 96 | #endif /* platform.h */ |