missing methods in inttypes.h
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...
Size: 621 bytes
Desc: OpenPGP digital signature
More information about the Newlib