build: fix od build on clang < 17
commitf85472082c5920951a2886c114612c5002899fb8
authorPádraig Brady <P@draigBrady.com>
Wed, 7 Feb 2024 10:55:00 +0000 (7 10:55 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 7 Feb 2024 11:13:38 +0000 (7 11:13 +0000)
tree9b8250bdb10dfb017019fbbadc9f132d65dcb848
parent76604db7d2da0ceb4de4542ebf315b3d6415f972
build: fix od build on clang < 17

* configure.ac: Ensure the compiler can promote 16 bit floating point
types to float, before enabling that code in od.  This was an issue
with clang 16 at least.
* src/od.c: Adjust for the new defines.
* tests/od/od-float.sh: Likewise.  Also port to the dash shell,
whose inbuilt printf doesn't support hex escapes.
configure.ac
src/od.c
tests/od/od-float.sh