forked from Imagelibrary/rtems
2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/pmacros.h: Add PRIxblksize_t, PRIxblkcnt_t. * configure.ac: Add AC_CHECK_SIZEOF([blksize_t]), AC_CHECK_SIZEOF([blkcnt_t]).
This commit is contained in:
@@ -55,6 +55,8 @@ AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
|
||||
|
||||
# FIXME: We should get rid of this. It's a cludge.
|
||||
AC_CHECK_SIZEOF([off_t])
|
||||
AC_CHECK_SIZEOF([blksize_t])
|
||||
AC_CHECK_SIZEOF([blkcnt_t])
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
AC_CONFIG_FILES([Makefile
|
||||
|
||||
@@ -101,6 +101,26 @@
|
||||
#error "unsupported size of off_t"
|
||||
#endif
|
||||
|
||||
#if SIZEOF_BLKSIZE_T == 8
|
||||
#define PRIxblksize_t PRIx64
|
||||
#elif SIZEOF_BLKSIZE_T == 4
|
||||
#define PRIxblksize_t PRIx32
|
||||
#else
|
||||
/* Warn and fall back to "long" */
|
||||
#warning "unsupported size of blksize_t"
|
||||
#define PRIxblksize_t "lx"
|
||||
#endif
|
||||
|
||||
#if SIZEOF_BLKSIZE_T == 8
|
||||
#define PRIxblkcnt_t PRIx64
|
||||
#elif SIZEOF_BLKSIZE_T == 4
|
||||
#define PRIxblkcnt_t PRIx32
|
||||
#else
|
||||
/* Warn and fall back to "long" */
|
||||
#warning "unsupported size of blkcnt_t"
|
||||
#define PRIxblkcnt_t "lx"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/* end of file */
|
||||
|
||||
Reference in New Issue
Block a user