This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |