Skip to content

Commit

Permalink
add configuration for s390x (and related) to c/version.h (#815)
Browse files Browse the repository at this point in the history
This configuration enables pb mode to run on s390x.
  • Loading branch information
mflatt authored Mar 10, 2024
1 parent fc081fc commit 8c93b36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions c/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c93b36

Please sign in to comment.