http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69c1ec
)
Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining
author
Michael Brown
<mcb30@etherboot.org>
Fri, 19 May 2006 14:51:59 +0000
(14:51 +0000)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/src/arch/i386/include/stdint.h
b/src/arch/i386/include/stdint.h
index
efade21
..
9a07b8c
100644
(file)
--- 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;