Skip to content

Commit 15c4a7f

Browse files
committedJun 12, 2014
Merge pull request #400 from kdeme/master
Heuristic IEEE754 endianness autoconf detection Use AC_C_BIGENDIAN, though it's not really the correct approach. Autoconf ought to have provided a test specifically for IEEE754 endianness, since it can differ from integer/pointer endianness!
2 parents e73951f + 20e6292 commit 15c4a7f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎configure.ac

+6
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ if test $have___thread = yes; then
103103
fi
104104
AC_MSG_RESULT($have___thread)
105105

106+
AC_C_BIGENDIAN(
107+
AC_DEFINE([IEEE_MC68k], 1, [machine is bigendian]),
108+
AC_DEFINE([IEEE_8087], 1, [machine is littleendian]),
109+
AC_MSG_ERROR(unknown endianess),
110+
AC_MSG_ERROR(universial endianess not supported)
111+
)
106112

107113
AC_SUBST([BUNDLER], ["$bundle_cmd"])
108114

‎jv_dtoa.c

-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@
187187
* used for input more than STRTOD_DIGLIM digits long (default 40).
188188
*/
189189

190-
#define IEEE_8087
191190
#define NO_ERRNO
192191
#define NO_HEX_FP
193192
#define No_Hex_NaN

0 commit comments

Comments
 (0)
Please sign in to comment.