]> granicus.if.org Git - check/commitdiff
Use stdint.h for specific sized type
authorhugo303 <hugo303@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 17 Aug 2004 14:39:30 +0000 (14:39 +0000)
committerhugo303 <hugo303@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 17 Aug 2004 14:39:30 +0000 (14:39 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@181 64e312b2-a51f-0410-8e61-82d0ca0eb02a

check/ChangeLog
check/src/check_pack.c

index 61f9fcac1bbdcccd468be95a090117d8318efd02..d4d4792c1c93386c5a708f9d52f4d0c5327d5395 100644 (file)
@@ -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.
index c9af9037495e0ba755fe44cbf1e0507aefe93956..aa35f27f49ca3276cc117e7186dbf5126abb4808 100644 (file)
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <unistd.h>
+#include <stdint.h>
 
 #include "check.h"
 #include "check_error.h"
 #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);