OSDN Git Service

* testsuite/libffi.call/ffitest.h: Define PRIuPTR on Solaris < 10.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 10:00:12 +0000 (10:00 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 10:00:12 +0000 (10:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155151 138bc75d-0d04-0410-961f-82ee72b054a4

libffi/ChangeLog
libffi/testsuite/libffi.call/ffitest.h

index 029735f..8f28614 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        PR libffi/40700
index c7cb76c..5f15778 100644 (file)
 #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)