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 efade21..9a07b8c 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;