projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update build system to Autoconf 2.58, Automake 1.7, gettext 0.12.1.
[pspp-builds.git]
/
src
/
sfm-write.c
diff --git
a/src/sfm-write.c
b/src/sfm-write.c
index 0e99013f689126a2ccb6e0da4f7930ee4a599c78..e0aeb44441abe8bea32186d6a8b97d2ea360f52a 100644
(file)
--- a/
src/sfm-write.c
+++ b/
src/sfm-write.c
@@
-563,21
+563,18
@@
write_rec_7_34 (struct sfm_write_info * inf)
rec_7.elem_3[3] = -1;
/* PORTME: 1=IEEE754, 2=IBM 370, 3=DEC VAX E. */
rec_7.elem_3[3] = -1;
/* PORTME: 1=IEEE754, 2=IBM 370, 3=DEC VAX E. */
-#if
FPREP==
FPREP_IEEE754
+#if
def
FPREP_IEEE754
rec_7.elem_3[4] = 1;
rec_7.elem_3[4] = 1;
-#else
-#error Floating-point representation unknown here.
#endif
rec_7.elem_3[5] = 1;
/* PORTME: 1=big-endian, 2=little-endian. */
#endif
rec_7.elem_3[5] = 1;
/* PORTME: 1=big-endian, 2=little-endian. */
- if (endian == BIG)
- rec_7.elem_3[6] = 1;
- else if (endian == LITTLE)
- rec_7.elem_3[6] = 2;
- else
- rec_7.elem_3[6] = 0;
+#if WORDS_BIGENDIAN
+ rec_7.elem_3[6] = 1;
+#else
+ rec_7.elem_3[6] = 2;
+#endif
/* PORTME: 1=EBCDIC, 2=7-bit ASCII, 3=8-bit ASCII, 4=DEC Kanji. */
rec_7.elem_3[7] = 2;
/* PORTME: 1=EBCDIC, 2=7-bit ASCII, 3=8-bit ASCII, 4=DEC Kanji. */
rec_7.elem_3[7] = 2;