diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5,8 +5,13 @@ #ifndef PACK_INTERNAL_H #define PACK_INTERNAL_H +#include <limits.h> #include <stddef.h> +#define BITMASK(n) (UINTMAX_MAX >> (sizeof (uintmax_t) * CHAR_BIT - n)) + +enum endian { BIG, LITTLE }; + size_t getsize(char c); #endif // !PACK_INTERNAL_H |