From: hugo303 Date: Tue, 17 Aug 2004 14:39:30 +0000 (+0000) Subject: Use stdint.h for specific sized type X-Git-Tag: 0.10.0~968 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d449728caafff0715b8bee4f39281de7210fbfa;p=check Use stdint.h for specific sized type git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@181 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/check/ChangeLog b/check/ChangeLog index 61f9fca..d4d4792 100644 --- a/check/ChangeLog +++ b/check/ChangeLog @@ -1,5 +1,6 @@ 2004-08-17 hugo303 + * src/check_pack.c: Use stdint.h for specific sized type. * src/check.c, src/check.h.in, tests/check_check_master.c, tests/check_check_sub.c, ChangeLog Applied varargs patch (#933411) and added test cases. diff --git a/check/src/check_pack.c b/check/src/check_pack.c index c9af903..aa35f27 100644 --- a/check/src/check_pack.c +++ b/check/src/check_pack.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "check.h" #include "check_error.h" @@ -31,15 +32,8 @@ #include "check_impl.h" #include "check_pack.h" - /* typedef an unsigned int that has at least 4 bytes */ -#if SIZEOF_INT == 4 -typedef unsigned int ck_uint32; -#elif SIZEOF_SHORT == 4 -typedef unsigned short ck_uint32; -#else -typedef unsigned long ck_uint32; -#endif +typedef uint32_t ck_uint32; static void pack_int (char **buf, int val);