summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/include
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-08 06:37:34 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-08 06:37:34 +0000
commitc03792fcd7235b07f6ef28159d9bb3d37d282392 (patch)
tree5fe0bcc80aa510de63f32c1f2354d43e2d7ff870 /testsuites/psxtests/include
parent2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-c03792fcd7235b07f6ef28159d9bb3d37d282392.tar.bz2
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]).
Diffstat (limited to 'testsuites/psxtests/include')
-rw-r--r--testsuites/psxtests/include/pmacros.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuites/psxtests/include/pmacros.h b/testsuites/psxtests/include/pmacros.h
index 378e93a6e9..921f33a271 100644
--- a/testsuites/psxtests/include/pmacros.h
+++ b/testsuites/psxtests/include/pmacros.h
@@ -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 */