From 0ab92faedbe423fa9b93f01b6d1971f28b0b3139 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 19 May 2006 14:51:59 +0000 Subject: [PATCH] Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining about format errors for %zX arguments. --- src/arch/i386/include/stdint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/i386/include/stdint.h b/src/arch/i386/include/stdint.h index efade219..9a07b8cb 100644 --- a/src/arch/i386/include/stdint.h +++ b/src/arch/i386/include/stdint.h @@ -1,7 +1,7 @@ #ifndef STDINT_H #define STDINT_H -typedef unsigned long size_t; +typedef typeof(sizeof(int)) size_t; typedef signed long ssize_t; typedef signed long off_t;