From 5edfaf66958a7ea7ae6fb7b58c037b86465340ad Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 6 Aug 2021 20:14:04 +0100 Subject: add pack_type and pack_endian and use them --- common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index e4eebb0..183392a 100644 --- a/common.h +++ b/common.h @@ -8,6 +8,8 @@ #include #include +#include "pack.h" + #define BITMASK(n) (UINTMAX_MAX >> (sizeof (uintmax_t) * CHAR_BIT - n)) #ifndef PRIuSIZE @@ -22,8 +24,6 @@ #endif #endif -enum endian { BIG, LITTLE }; - -size_t getsize(char c); +size_t getsize(enum pack_type t); #endif // !PACK_COMMON_H -- cgit v1.2.3-54-g00ecf