summaryrefslogtreecommitdiff
path: root/libffi/testsuite
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-11 10:00:12 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-11 10:00:12 +0000
commitdb0ed9416d2f8962c5362cf71c9712f9814d5fb8 (patch)
tree79fe725aeff788087b6621997eed0fbcb41baa86 /libffi/testsuite
parentc5f9edc297671b4dc22bfb5cdea60f8470f0fa6f (diff)
downloadgcc-db0ed9416d2f8962c5362cf71c9712f9814d5fb8.tar.gz
* testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155151 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/testsuite')
-rw-r--r--libffi/testsuite/libffi.call/ffitest.h9
1 files changed, 9 insertions, 0 deletions
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)