missing methods in inttypes.h
Eric Blake
eblake@redhat.com
Thu Aug 1 19:44:00 GMT 2013
On 08/01/2013 12:03 PM, Joel Sherrill wrote:
> Would a simple #define like this be acceptable?
>
> #define imaxabs( _j ) (intmax_t) llabs( _j )
No, because POSIX requires these to exist as linkable functions (it
allows macros on top of functions, but the functions must exist).
That, and you didn't parenthesize your proposed macro correctly; it
would need to be ((intmax_t)llabs(_j)).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20130801/8facfae4/attachment.sig>
More information about the Newlib
mailing list