diff options
-rw-r--r-- | common.h | 5 | ||||
-rw-r--r-- | unpack.c | 5 |
2 files changed, 5 insertions, 5 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 @@ -5,7 +5,6 @@ #include <ctype.h> #include <errno.h> #include <inttypes.h> -#include <limits.h> #include <math.h> #include <stdarg.h> #include <stdbool.h> @@ -16,10 +15,6 @@ #include "pack.h" #include "trace.h" -enum endian { BIG, LITTLE }; - -#define BITMASK(n) (UINTMAX_MAX >> (sizeof (uintmax_t) * CHAR_BIT - n)) - #define GEN_CONV_IEEE754B(type, total, nexp, nfrac) \ static type convert_ieee754b##total(uintmax_t b) \ { \ |