X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=config_h.SH;h=a40ec44d34f7e57ec455ed343a1dfed7156c9b98;hb=99a6169dfdb8b2356f889b4575ec1f2642a7f5fa;hp=96c7d060ee3f944f4064e8aa52d705d983ccf316;hpb=538c07cc47462f860164a221f4f667ce2103ec45;p=p5sagit%2Fp5-mst-13.2.git diff --git a/config_h.SH b/config_h.SH index 96c7d06..a40ec44 100644 --- a/config_h.SH +++ b/config_h.SH @@ -987,19 +987,19 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH) # ifdef __LITTLE_ENDIAN__ -# if UVSIZE == 4 +# if LONGSIZE == 4 # define BYTEORDER 0x1234 # else -# if UVSIZE == 8 +# if LONGSIZE == 8 # define BYTEORDER 0x12345678 # endif # endif # else # ifdef __BIG_ENDIAN__ -# if UVSIZE == 4 +# if LONGSIZE == 4 # define BYTEORDER 0x4321 # else -# if UVSIZE == 8 +# if LONGSIZE == 8 # define BYTEORDER 0x87654321 # endif # endif @@ -3228,6 +3228,19 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #define NVSIZE $nvsize /**/ #$d_nv_preserves_uv NV_PRESERVES_UV #define NV_PRESERVES_UV_BITS $nv_preserves_uv_bits +#if UVSIZE == 8 +# ifdef BYTEORDER +# if BYTEORDER == 0x1234 +# undef BYTEORDER +# define BYTEORDER 0x12345678 +# else +# if BYTEORDER == 0x4321 +# undef BYTEORDER +# define BYTEORDER 0x87654321 +# endif +# endif +# endif +#endif /* IVdf: * This symbol defines the format string used for printing a Perl IV