summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/include
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-05-29 05:31:46 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-05-29 05:31:46 +0000
commit700b9116a80ae8457538e2c617ddb715ac54abaf (patch)
tree182fdd94017fbc7f98ddf2a87bb5dbaa19708b0d /testsuites/psxtests/include
parent2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-700b9116a80ae8457538e2c617ddb715ac54abaf.tar.bz2
2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add AC_CHECK_SIZEOF(off_t). * include/pmacros.h: Add PRIdoff_t.
Diffstat (limited to 'testsuites/psxtests/include')
-rw-r--r--testsuites/psxtests/include/pmacros.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuites/psxtests/include/pmacros.h b/testsuites/psxtests/include/pmacros.h
index be9f35c8e5..378e93a6e9 100644
--- a/testsuites/psxtests/include/pmacros.h
+++ b/testsuites/psxtests/include/pmacros.h
@@ -93,6 +93,14 @@
#define empty_line() puts( "" )
+#if SIZEOF_OFF_T == 8
+#define PRIdoff_t PRIo64
+#elif SIZEOF_OFF_T == 4
+#define PRIdoff_t PRIo32
+#else
+#error "unsupported size of off_t"
+#endif
+
#endif
/* end of file */