]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining
authorMichael Brown <mcb30@etherboot.org>
Fri, 19 May 2006 14:51:59 +0000 (14:51 +0000)
committerMichael Brown <mcb30@etherboot.org>
Fri, 19 May 2006 14:51:59 +0000 (14:51 +0000)
about format errors for %zX arguments.

src/arch/i386/include/stdint.h

index efade219b986ec8bc7adb5b8660c9c79caa0e3ce..9a07b8cb80fcfd534be8251b1ea3767ddb269872 100644 (file)
@@ -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;