about summary refs log tree commit diff
path: root/converter/other/fiasco/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-12-10 03:07:33 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-12-10 03:07:33 +0000
commit9263b0eb01014ae0e28efb744f2d64adcf8f0125 (patch)
treef1b3f061854fd73f64e8b7a2f9b474a03386e457 /converter/other/fiasco/lib
parent0918b9d1386bb7fc7ea9e267c62c2f10d397d34c (diff)
downloadnetpbm-mirror-9263b0eb01014ae0e28efb744f2d64adcf8f0125.tar.gz
netpbm-mirror-9263b0eb01014ae0e28efb744f2d64adcf8f0125.tar.xz
netpbm-mirror-9263b0eb01014ae0e28efb744f2d64adcf8f0125.zip
Release 10.35.70
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@1044 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/fiasco/lib')
-rw-r--r--converter/other/fiasco/lib/dither.c9
-rw-r--r--converter/other/fiasco/lib/rpf.c7
2 files changed, 9 insertions, 7 deletions
diff --git a/converter/other/fiasco/lib/dither.c b/converter/other/fiasco/lib/dither.c
index c7f9ebab..a39afa3c 100644
--- a/converter/other/fiasco/lib/dither.c
+++ b/converter/other/fiasco/lib/dither.c
@@ -35,6 +35,7 @@
  *  $State: Exp $
  */
 
+#include "pm_config.h"
 #include "config.h"
 
 #if HAVE_STRING_H
@@ -665,15 +666,15 @@ display_16_bit (const struct fiasco_renderer *this, unsigned char *ximage,
 	 
 	 for (n = image->width * image->height / 2; n; n--, src += 2)
 #ifdef HAVE_SIGNED_SHIFT
-#	ifndef WORDS_BIGENDIAN
+#	if BYTE_ORDER == LITTLE_ENDIAN
 	    *dst++ = (y_table [src [1] >> 4] << 16) | y_table [src [0] >> 4];
-#	else /* not WORDS_BIGENDIAN  */
+#	else
 	    *dst++ = (y_table [src [0] >> 4] << 16) | y_table [src [1] >> 4];
 #	endif
 #else /* not HAVE_SIGNED_SHIFT */
-#	ifndef WORDS_BIGENDIAN
+#	if BYTE_ORDER == LITTLE_ENDIAN
 	    *dst++ = (y_table [src [1] / 16] << 16) | y_table [src [0] / 16];
-#	else /* not WORDS_BIGENDIAN  */
+#	else
 	    *dst++ = (y_table [src [0] / 16] << 16) | y_table [src [1] / 16];
 #	endif
 #endif /* not HAVE_SIGNED_SHIFT */
diff --git a/converter/other/fiasco/lib/rpf.c b/converter/other/fiasco/lib/rpf.c
index ac7d48ca..84c1f9b6 100644
--- a/converter/other/fiasco/lib/rpf.c
+++ b/converter/other/fiasco/lib/rpf.c
@@ -16,6 +16,7 @@
  *  $State: Exp $
  */
 
+#include "pm_config.h"
 #include "config.h"
 
 #include "types.h"
@@ -30,7 +31,7 @@
  *          or all following code is void!
  */
 
-#ifdef WORDS_BIGENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
 /*
  *  Big-Endian Architecture (e.g. SUN, Motorola)
  *  Memory representation of integer 0x00112233 is 00,11,22,33
@@ -38,7 +39,7 @@
 
 enum real_bytes {BYTE_0, BYTE_1, BYTE_2, BYTE_3};
 
-#else  /* not WORDS_BIGENDIAN */
+#else
 /*
  *  Little-Endian Architecture (e.g. Intel, VAX, Alpha)
  *  Memory representation of integer 0x00112233 is 33,22,11,00
@@ -46,7 +47,7 @@ enum real_bytes {BYTE_0, BYTE_1, BYTE_2, BYTE_3};
 
 enum real_bytes {BYTE_3, BYTE_2, BYTE_1, BYTE_0};
 
-#endif /* not WORDS_BIGENDIAN */
+#endif
 
 const int RPF_ZERO = -1;