Skip to content

Commit

Permalink
Merge pull request #400 from kdeme/master
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
nicowilliams committed Jun 12, 2014
2 parents e73951f + 20e6292 commit 15c4a7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ if test $have___thread = yes; then
fi
AC_MSG_RESULT($have___thread)

AC_C_BIGENDIAN(
AC_DEFINE([IEEE_MC68k], 1, [machine is bigendian]),
AC_DEFINE([IEEE_8087], 1, [machine is littleendian]),
AC_MSG_ERROR(unknown endianess),
AC_MSG_ERROR(universial endianess not supported)
)

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

Expand Down
1 change: 0 additions & 1 deletion jv_dtoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@
* used for input more than STRTOD_DIGLIM digits long (default 40).
*/

#define IEEE_8087
#define NO_ERRNO
#define NO_HEX_FP
#define No_Hex_NaN
Expand Down

0 comments on commit 15c4a7f

Please sign in to comment.