From 8c93b3696330a9296cdf2fc7fd7b6a1d2cdb4ae1 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sun, 10 Mar 2024 08:01:33 -0600 Subject: [PATCH] add configuration for s390x (and related) to `c/version.h` (#815) This configuration enables pb mode to run on s390x. --- c/version.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c/version.h b/c/version.h index 6eed74e1..da4af287 100644 --- a/c/version.h +++ b/c/version.h @@ -48,6 +48,11 @@ # define FLUSHCACHE #endif +#if defined(__s390__) || defined(__s390x__) || defined(__zarch__) +# define PORTABLE_BYTECODE_BIGENDIAN +# define BIG_ENDIAN_IEEE_DOUBLE +#endif + #ifdef PORTABLE_BYTECODE # undef FLUSHCACHE # ifdef PORTABLE_BYTECODE_BIGENDIAN