diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-25 15:45:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-25 15:45:51 +0000 |
commit | 050a890dfac58c5fb0e87881b6731a50e42b72bc (patch) | |
tree | 5c4e9357386fb2fcfbe48407b3d205be2d38e86b /config_h.SH | |
parent | e25e13010f33e943d98a02c701fcec90c1ad6a11 (diff) | |
download | perl-050a890dfac58c5fb0e87881b6731a50e42b72bc.tar.gz |
UVSIZE is not yet defined when it would be needed
by MULTIARCH. So go back to LONGSIZE, and (belt-
and-suspenders-and-rope style) later in UVSIZE
possibly redefine BYTEORDER.
p4raw-id: //depot/perl@20881
Diffstat (limited to 'config_h.SH')
-rw-r--r-- | config_h.SH | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/config_h.SH b/config_h.SH index 96c7d060ee..a40ec44d34 100644 --- a/config_h.SH +++ b/config_h.SH @@ -987,19 +987,19 @@ sed <<!GROK!THIS! >$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 <<!GROK!THIS! >$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 |