summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
-rw-r--r--include/platform.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 1031cad..f406fc6 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1540,7 +1540,7 @@ typedef struct md5_ctx_t {
uint32_t C;
uint32_t D;
uint64_t total;
- char buffer[128];
+ char buffer[64];
} md5_ctx_t;
#else
/* libbb/md5prime.c uses a bit different one: */
diff --git a/include/platform.h b/include/platform.h
index 85efa53..c255a17 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -197,6 +197,8 @@
# define SWAP_LE16(x) bswap_16(x)
# define SWAP_LE32(x) bswap_32(x)
# define SWAP_LE64(x) bswap_64(x)
+# define IF_BIG_ENDIAN(...) __VA_ARGS__
+# define IF_LITTLE_ENDIAN(...)
#else
# define SWAP_BE16(x) bswap_16(x)
# define SWAP_BE32(x) bswap_32(x)
@@ -204,6 +206,8 @@
# define SWAP_LE16(x) (x)
# define SWAP_LE32(x) (x)
# define SWAP_LE64(x) (x)
+# define IF_BIG_ENDIAN(...)
+# define IF_LITTLE_ENDIAN(...) __VA_ARGS__
#endif
/* ---- Unaligned access ------------------------------------ */