Update build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.
[pspp-builds.git] / src / data-out.c
index 24428c6ac69c241a3fcb936f34614ff1045c1518..e5a42d578199af58e2cb883d7c440a631d67c0c0 100644 (file)
@@ -467,8 +467,9 @@ convert_IB (char *dst, const struct fmt_spec *fp, const union value *v)
        }
     }
   memcpy (dst, temp, fp->w);
-  if (endian == LITTLE)
-    mm_reverse (dst, fp->w);
+#ifndef WORDS_BIGENDIAN
+  mm_reverse (dst, fp->w);
+#endif
 
   return 1;
 }
@@ -530,8 +531,9 @@ convert_PIB (char *dst, const struct fmt_spec *fp, const union value *v)
       frac *= 256.0;
       ((unsigned char *) dst)[i] = floor (frac);
     }
-  if (endian == LITTLE)
-    mm_reverse (dst, fp->w);
+#ifndef WORDS_BIGENDIAN
+  mm_reverse (dst, fp->w);
+#endif
 
   return 1;
 }