summaryrefslogtreecommitdiff
path: root/libffi/testsuite/libffi.special/ffitestcxx.h
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/testsuite/libffi.special/ffitestcxx.h')
-rw-r--r--libffi/testsuite/libffi.special/ffitestcxx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libffi/testsuite/libffi.special/ffitestcxx.h b/libffi/testsuite/libffi.special/ffitestcxx.h
index b9f0d48761f..92fb6568017 100644
--- a/libffi/testsuite/libffi.special/ffitestcxx.h
+++ b/libffi/testsuite/libffi.special/ffitestcxx.h
@@ -43,6 +43,16 @@
#endif
+
+/* MinGW kludge. */
+#ifdef WIN64
+#define PRIdLL "PRId64"
+#define PRIuLL "PRIu64"
+#else
+#define PRIdLL "lld"
+#define PRIuLL "llu"
+#endif
+
#ifdef USING_MMAP
static inline void *
allocate_mmap (size_t size)