projects
/
jq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73951f
)
Detect endianness at configuration with Autoconf AC_C_BIGENDIAN feature
400/head
author
Kim De Mey
<kim.demey@gmail.com>
Wed, 11 Jun 2014 08:37:32 +0000
(10:37 +0200)
committer
Kim De Mey
<kim.demey@gmail.com>
Wed, 11 Jun 2014 08:37:32 +0000
(10:37 +0200)
configure.ac
patch
|
blob
|
history
jv_dtoa.c
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 8171c21fe7b69a7b2588cc94bc70b7137c3f80c6..238405e99b915ff8eec30e46dd085f8554a1842f 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-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"])
diff --git
a/jv_dtoa.c
b/jv_dtoa.c
index b8325267aa958382614fc01b5add72ca693efb33..4de92e43811a1e18267825932a2d6d400665fc53 100644
(file)
--- a/
jv_dtoa.c
+++ b/
jv_dtoa.c
@@
-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