X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/8f527347207fa9177c3cf624f73fe33f9aad7f3d..79c3e2f505f985dba6755b2a1d6b8ca8299bdc6b:/src/pack.c diff --git a/src/pack.c b/src/pack.c index 4490701..1128a19 100644 --- a/src/pack.c +++ b/src/pack.c @@ -8,9 +8,6 @@ * without any warranty. */ -#include -#include - #include "pack.h" /* Unsigned integer packing. */ @@ -36,13 +33,13 @@ DEFPACK_BE(16, unsigned short) DEFPACK_BE(32, unsigned long) -#ifdef ULLONG_MAX +#if PACK_HAVE_64BIT DEFPACK_BE(64, unsigned long long) #endif DEFPACK_LE(16, unsigned short) DEFPACK_LE(32, unsigned long) -#ifdef ULLONG_MAX +#if PACK_HAVE_64BIT DEFPACK_LE(64, unsigned long long) #endif @@ -72,13 +69,13 @@ DEFPACK_LE(64, unsigned long long) DEFUNPACK_BE(16, unsigned short) DEFUNPACK_BE(32, unsigned long) -#ifdef ULLONG_MAX +#if PACK_HAVE_64BIT DEFUNPACK_BE(64, unsigned long long) #endif DEFUNPACK_LE(16, unsigned short) DEFUNPACK_LE(32, unsigned long) -#ifdef ULLONG_MAX +#if PACK_HAVE_64BIT DEFUNPACK_LE(64, unsigned long long) #endif @@ -115,12 +112,12 @@ DEFUNPACK_LE(64, unsigned long long) DEFUNPACK_SBE(16, 32767, short) DEFUNPACK_SBE(32, 2147483647l, long) -#ifdef LLONG_MAX +#if PACK_HAVE_64BIT DEFUNPACK_SBE(64, 9223372036854775807ll, long long) #endif DEFUNPACK_SLE(16, 32767, short) DEFUNPACK_SLE(32, 2147483647l, long) -#ifdef LLONG_MAX +#if PACK_HAVE_64BIT DEFUNPACK_SLE(64, 9223372036854775807ll, long long) #endif