Преглед изворни кода

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 година
родитељ
комит
0ab92faedb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/arch/i386/include/stdint.h

+ 1
- 1
src/arch/i386/include/stdint.h Прегледај датотеку

@@ -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…
Откажи
Сачувај