소스 검색

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

about format errors for %zX arguments.
tags/v0.9.3
Michael Brown 19 년 전
부모
커밋
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…
취소
저장