From 700b9116a80ae8457538e2c617ddb715ac54abaf Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 29 May 2010 05:31:46 +0000 Subject: =?UTF-8?q?2010-05-29=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * configure.ac: Add AC_CHECK_SIZEOF(off_t). * include/pmacros.h: Add PRIdoff_t. --- testsuites/psxtests/include/pmacros.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testsuites/psxtests/include') 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 */ -- cgit v1.2.3