aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-02-21 06:44:43 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-02-21 06:44:43 +0000
commit455a601aad7bcf8caeacab32bf4fb51ba6988ea6 (patch)
tree3c3a7b2aa31dd4105f15f435a5894c91c941686e /include/platform.h
parent323999d71b5315cd17cd09a72d442a82f7335f1c (diff)
downloadbusybox-w32-455a601aad7bcf8caeacab32bf4fb51ba6988ea6.tar.gz
busybox-w32-455a601aad7bcf8caeacab32bf4fb51ba6988ea6.tar.bz2
busybox-w32-455a601aad7bcf8caeacab32bf4fb51ba6988ea6.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).) git-svn-id: svn://busybox.net/trunk/busybox@14160 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h15
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 */