Commit 2ea54b81 by Eric Botcazou Committed by Eric Botcazou

* testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.

From-SVN: r155151
parent 92fe59d1
2009-12-11 Eric Botcazou <ebotcazou@adacore.com>
* testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
2009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2009-12-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libffi/40700 PR libffi/40700
......
...@@ -54,6 +54,15 @@ ...@@ -54,6 +54,15 @@
#define PRIuLL "llu" #define PRIuLL "llu"
#endif #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 #ifdef USING_MMAP
static inline void * static inline void *
allocate_mmap (size_t size) allocate_mmap (size_t size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment