--- /dev/null +++ b/uoff_t.h @@ -0,0 +1,26 @@ +/* cross compile replacement of the mkuoff_t.c generated header */ + +#ifndef _UOFF_T_H +#define _UOFF_T_H + +#include + +#define SIZEOF_CHAR 1 +#define SIZEOF_SHORT __SIZEOF_SHORT__ +#define SIZEOF_INT __SIZEOF_INT__ +#define SIZEOF_LONG __SIZEOF_LONG__ +#define SIZEOF_LONG_LONG __SIZEOF_LONG_LONG__ +#define SIZEOF_VOID_P __SIZEOF_POINTER__ +#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__ + +#if (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) || __SIZEOF_LONG__ == 8 +#define SIZEOF_OFF_T 8 +#define SIZEOF_UOFF_T 8 +typedef uint64_t uoff_t; +#else +#define SIZEOF_OFF_T 4 +#define SIZEOF_UOFF_T 4 +typedef uint32_t uoff_t; +#endif + +#endif /* _UOFF_T_H */