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

about format errors for %zX arguments.
pull/1/head
Michael Brown 2006-05-19 14:51:59 +00:00
parent c69c1ec540
commit 0ab92faedb
1 changed files with 1 additions and 1 deletions

View 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;