From: Eric Botcazou Date: Fri, 11 Dec 2009 10:00:12 +0000 (+0000) Subject: * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ea54b81da0e6f24047b8974aa0c3fa18b3cdeae;p=gcc.git * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10. From-SVN: r155151 --- diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 029735f49bd..8f2861400ce 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,7 @@ +2009-12-11 Eric Botcazou + + * testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10. + 2009-12-10 Rainer Orth PR libffi/40700 diff --git a/libffi/testsuite/libffi.call/ffitest.h b/libffi/testsuite/libffi.call/ffitest.h index c7cb76cb3b5..5f157788291 100644 --- a/libffi/testsuite/libffi.call/ffitest.h +++ b/libffi/testsuite/libffi.call/ffitest.h @@ -54,6 +54,15 @@ #define PRIuLL "llu" #endif +/* Solaris < 10 kludge. */ +#if defined(__sun__) && defined(__svr4__) && !defined(PRIuPTR) +#if defined(__arch64__) || defined (__x86_64__) +#define PRIuPTR "lu" +#else +#define PRIuPTR "u" +#endif +#endif + #ifdef USING_MMAP static inline void * allocate_mmap (size_t size)