Changeset c03792f in rtems


Ignore:
Timestamp:
Feb 8, 2011, 6:37:34 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
5aa9263
Parents:
cfa956e
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

    rcfa956e rc03792f  
    7676# FIXME: We should get rid of this. It's a cludge.
    7777AC_CHECK_SIZEOF([off_t])
     78AC_CHECK_SIZEOF([blksize_t])
     79AC_CHECK_SIZEOF([blkcnt_t])
    7880
    7981# Explicitly list all Makefiles here
  • testsuites/psxtests/include/pmacros.h

    rcfa956e rc03792f  
    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.