Browse Source

Use typeof(sizeof(...)) to define a size_t. This stops gcc complaining

about format errors for %zX arguments.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
0ab92faedb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/arch/i386/include/stdint.h

+ 1
- 1
src/arch/i386/include/stdint.h View File

@@ -1,7 +1,7 @@
1 1
 #ifndef STDINT_H
2 2
 #define STDINT_H
3 3
 
4
-typedef unsigned long		size_t;
4
+typedef typeof(sizeof(int))	size_t;
5 5
 typedef signed long		ssize_t;
6 6
 typedef signed long		off_t;
7 7
 

Loading…
Cancel
Save