summaryrefslogtreecommitdiffstats
path: root/libffi/testsuite/libffi.call/ffitest.h
diff options
context:
space:
mode:
Diffstat (limited to 'libffi/testsuite/libffi.call/ffitest.h')
-rw-r--r--libffi/testsuite/libffi.call/ffitest.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libffi/testsuite/libffi.call/ffitest.h b/libffi/testsuite/libffi.call/ffitest.h
index b41e14b8f84..45c0564966f 100644
--- a/libffi/testsuite/libffi.call/ffitest.h
+++ b/libffi/testsuite/libffi.call/ffitest.h
@@ -9,6 +9,16 @@
#define CHECK(x) !(x) ? abort() : 0
+/* Define our own long for easier handling on multilib targets. */
+#if LONG_MAX == 2147483647
+#define ffi_type_mylong ffi_type_uint32
+#else
+#if LONG_MAX == 9223372036854775807
+#define ffi_type_mylong ffi_type_uint64
+#else
+#error "Error, size LONG not defined as expected"
+#endif
+#endif
/* Prefer MAP_ANON(YMOUS) to /dev/zero, since we don't need to keep a
file open. */
OpenPOWER on IntegriCloud