From: Michael Brown Date: Fri, 19 May 2006 14:51:59 +0000 (+0000) Subject: Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining X-Git-Tag: v0.9.3~1383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ab92faedbe423fa9b93f01b6d1971f28b0b3139;p=thirdparty%2Fipxe.git Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining about format errors for %zX arguments. --- diff --git a/src/arch/i386/include/stdint.h b/src/arch/i386/include/stdint.h index efade219b..9a07b8cb8 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;