forked from Imagelibrary/rtems
libdl/rtl-shell.c: Adjust printf() format for off_t based on target
This commit is contained in:
@@ -21,13 +21,15 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
//#if SIZEOF_OFF_T == 8
|
||||
/*
|
||||
* Flag the targets where off_t is 32 bits. This is not a compiler type
|
||||
* so we can't rely on prerdefines.
|
||||
*/
|
||||
#if defined(__m32r__) || defined(__moxie__)
|
||||
#define PRIdoff_t PRIo32
|
||||
#else
|
||||
#define PRIdoff_t PRIo64
|
||||
//#elif SIZEOF_OFF_T == 4
|
||||
//#define PRIdoff_t PRIo32
|
||||
//#else
|
||||
//#error "unsupported size of off_t"
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in New Issue
Block a user