diff options
Diffstat (limited to 'src/blind-to-portable.c')
| -rw-r--r-- | src/blind-to-portable.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/blind-to-portable.c b/src/blind-to-portable.c index 07eee62..e5de707 100644 --- a/src/blind-to-portable.c +++ b/src/blind-to-portable.c @@ -74,7 +74,7 @@ static int strict = 1; strict *= !USING_BINARY##BITS;\ if (!strict && sizeof(ITYPE) != sizeof(OTYPE))\ eprintf("-s is supported not on this machine\n");\ - if (stream->endian == LITTLE_ENDIAN && !strict) {\ + if (stream->endian == LITTLE && !strict) {\ esend_stream(stream, STDOUT_FILENO, "<stdout>");\ break;\ }\ @@ -99,7 +99,7 @@ static int strict = 1; do {\ size_t i, n;\ TYPE *buf = (TYPE *)(stream->buf);\ - if (stream->endian == LITTLE_ENDIAN) {\ + if (stream->endian == LITTLE) {\ esend_stream(stream, STDOUT_FILENO, "<stdout>");\ break;\ }\ @@ -141,11 +141,11 @@ main(int argc, char *argv[]) eopen_stream(&stream, NULL); #if defined(HOST_ENDIAN_IS_LITTLE_ENDIAN) - if (stream.endian == HOST_ENDIAN) - stream.endian = LITTLE_ENDIAN; + if (stream.endian == HOST) + stream.endian = LITTLE; #elif defined(HOST_ENDIAN_IS_BIG_ENDIAN) - if (stream.endian == HOST_ENDIAN) - stream.endian = BIG_ENDIAN; + if (stream.endian == HOST) + stream.endian = BIG; #endif SELECT_PROCESS_FUNCTION(&stream); |
