Changeset 1ebe3da in rtems


Ignore:
Timestamp:
Feb 8, 2011, 6:38:04 AM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10
Children:
cea60077
Parents:
664db16f
Message:

2011-02-08 Ralf Corsépius <ralf.corsepius@…>

  • include/pmacros.h: Add PRIxblksize_t, PRIxblkcnt_t.
  • configure.ac: Add AC_CHECK_SIZEOF([blksize_t]), AC_CHECK_SIZEOF([blkcnt_t]).
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/configure.ac

    r664db16f r1ebe3da  
    5656# FIXME: We should get rid of this. It's a cludge.
    5757AC_CHECK_SIZEOF([off_t])
     58AC_CHECK_SIZEOF([blksize_t])
     59AC_CHECK_SIZEOF([blkcnt_t])
    5860
    5961# Explicitly list all Makefiles here
  • testsuites/psxtests/include/pmacros.h

    r664db16f r1ebe3da  
    102102#endif
    103103
     104#if SIZEOF_BLKSIZE_T == 8
     105#define PRIxblksize_t PRIx64
     106#elif SIZEOF_BLKSIZE_T == 4
     107#define PRIxblksize_t PRIx32
     108#else
     109/* Warn and fall back to "long" */
     110#warning "unsupported size of blksize_t"
     111#define PRIxblksize_t "lx"
     112#endif
     113
     114#if SIZEOF_BLKSIZE_T == 8
     115#define PRIxblkcnt_t PRIx64
     116#elif SIZEOF_BLKSIZE_T == 4
     117#define PRIxblkcnt_t PRIx32
     118#else
     119/* Warn and fall back to "long" */
     120#warning "unsupported size of blkcnt_t"
     121#define PRIxblkcnt_t "lx"
     122#endif
     123
    104124#endif
    105125
Note: See TracChangeset for help on using the changeset viewer.